Date: Fri, 17 Feb 2017 07:37:28 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 217159] ps default to 79 characters can break ps|grep in shell scripts Message-ID: <bug-217159-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217159 Bug ID: 217159 Summary: ps default to 79 characters can break ps|grep in shell scripts Product: Base System Version: 11.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: n.deepak@gmail.com Created attachment 180064 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180064&action= =3Dedit Patch to set unlimited terminal size if we can't determine terminal characteristics FreeBSD ps defaults to output width of 79 characters if it cannot determine= tty width. This can hurt scripts that use "ps | grep" and run, for example, ss= h on a non-interactive shell. I've provided more context here: http://deepix.github.io/2016/10/10/psww.html I've also provided a patch as an attachment in unified diff format. Note that this problem does not exist on Linux or OS X. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217159-8>