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)
Dec 2 2024, 3:03 AM
Unknown Object (File)
Dec 2 2024, 3:03 AM
Unknown Object (File)
Dec 2 2024, 3:03 AM
Unknown Object (File)
Dec 2 2024, 2:41 AM
Unknown Object (File)
Dec 1 2024, 6:44 PM
Unknown Object (File)
Oct 15 2024, 9:45 PM
Unknown Object (File)
Oct 6 2024, 12:18 PM
Unknown Object (File)
Oct 6 2024, 12:18 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.