freebsd-skq/bin/ps
Conrad Meyer ef1d40da16 ps(1): Fix -w + UNLIMITED handling
A follow-up fix for r314685.

Because the -w flag is parsed after ps(1) infers termwidth from COLUMNS and
stdout, and UNLIMITED happens to be the zero value, the single -w flag in
combination with a non-terminal stdout or COLUMNS=0 could result in output
truncated at 131 characters.  (Despite the output being unlimited without
-w.)

Obviously, adding more -w shouldn't truncate output lines.

The committed patch is from bdrewery@, and I've reviewed and tested it.

Submitted by:	bdrewery@
Reported by:	bdrewery@
Sponsored by:	Dell EMC Isilon
2017-03-07 04:51:35 +00:00
..
extern.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
fmt.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
keyword.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile Explicitly add unmarked bin/ binaries to the runtime package. 2016-02-09 16:58:50 +00:00
Makefile.depend Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
nlist.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
print.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ps.1 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ps.c ps(1): Fix -w + UNLIMITED handling 2017-03-07 04:51:35 +00:00
ps.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00