Page MenuHomeFreeBSD

Change ps(1) output width to unlimited if not interactive
ClosedPublic

Authored by karels on Mar 8 2018, 12:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 14, 6:56 AM
Unknown Object (File)
Mon, Sep 14, 1:54 AM
Unknown Object (File)
Sun, Sep 13, 9:09 PM
Unknown Object (File)
Sun, Sep 13, 9:55 AM
Unknown Object (File)
Sun, Sep 13, 12:07 AM
Unknown Object (File)
Sat, Aug 29, 1:18 AM
Unknown Object (File)
Thu, Aug 27, 3:45 PM
Unknown Object (File)
Tue, Aug 18, 8:25 PM
Subscribers

Details

Summary

Apply patch submitted with PR 217159 to make ps use unlimited
width when not associated with a terminal (i.e., none of stdout, stdin,
or stderr is a tty). Update comments and man page correspondingly.
This change was requested to work around lack of -ww in scripts from
third-party packages, including Hadoop, and adds a small measure of
Linux compatibility. Hopefully few if any non-interactive scripts
depend on the old default of 79.

Test Plan

tested on head

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 15425
Build 15474: arc lint + arc unit

Event Timeline

vangyzen added inline comments.
bin/ps/ps.1
107

otherwised -> otherwise

This revision is now accepted and ready to land.Mar 8 2018, 3:32 PM

Thanks for catching the typo.

This revision was automatically updated to reflect the committed changes.