svn commit: r314685 - head/bin/ps

Conrad Meyer cem at freebsd.org
Sun Mar 5 03:32:08 UTC 2017


On Sat, Mar 4, 2017 at 6:50 PM, Bruce Evans <brde at optusnet.com.au> wrote:
>> Author: cem
>> Date: Sat Mar  4 22:38:10 2017
>> New Revision: 314685
>> URL: https://svnweb.freebsd.org/changeset/base/314685
>>
>> Log:
>>  ps(1): Only detect terminal width if stdout is a tty
>>
>>  If stdout isn't a tty, use unlimited width output rather than truncating
>> to
>>  79 characters.  This is helpful for shell scripts or e.g., 'ps | grep
>> foo'.
>
> This breaks many interactive uses, e.g., 'ps l | less', to work around a
> user error.

Hi Bruce,

Can you illustrate what breaks here?  less(1) doesn't wrap lines and
instead supports side-to-side scrolling with left/right arrow keys.
The user should get basically the same output with 'ps l | less' as
with 'ps l', aside from ability to scroll up/down and left/right.

Thanks,
Conrad


More information about the svn-src-head mailing list