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)
Sat, Jul 25, 10:36 PM
Unknown Object (File)
Tue, Jul 21, 8:40 AM
Unknown Object (File)
Fri, Jul 17, 9:31 AM
Unknown Object (File)
Wed, Jul 15, 3:48 AM
Unknown Object (File)
Sun, Jul 12, 12:41 PM
Unknown Object (File)
Jun 18 2026, 1:13 PM
Unknown Object (File)
May 23 2026, 10:25 AM
Unknown Object (File)
May 16 2026, 11:51 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

vangyzen added inline comments.
bin/ps/ps.1
107 ↗(On Diff #40059)

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.