bin/137647: ps(1) output depends on terminals column width when
piping or redirecting
brian at FreeBSD.org
brian at FreeBSD.org
Tue Aug 25 08:03:08 UTC 2009
Synopsis: ps(1) output depends on terminals column width when piping or redirecting
State-Changed-From-To: open->closed
State-Changed-By: brian
State-Changed-When: Tue Aug 25 07:56:45 UTC 2009
State-Changed-Why:
I agree with Michael. ps(1) checks stdout, stderr then stdin to see if
it's a tty, and if none are will set the width to 79.
Scripts should either use pgrep or pkill, or else use ps -ww and also
possibly -o comm or -o command.
http://www.freebsd.org/cgi/query-pr.cgi?pr=137647
More information about the freebsd-bugs
mailing list