Date: Sun, 03 Apr 2022 11:04:33 +0100 From: Jamie Landeg-Jones <jamie@catflap.org> To: freebsd-current@freebsd.org Subject: ps(1) with '-ww' / libxo truncating output Message-ID: <202204031004.233A4X9i000943@donotpassgo.dyslexicfish.net>
index | next in thread | raw e-mail
I've noticed that ps(1) (even with '-ww') is truncating output if it
exceeds a cerain length.
Further investigation shows that this is due to the libxo module.
The ps(1) man page implies there will be no truncation if "-ww" is used.
Is this a manpage issue, or a libxo issue, or a ps issue in the way it
calls libxo?
Test cases. These commands (run under sh not csh/tcsh) stuff dummy
variables into the environment. Note the truncated responses of test 1 and 2:
1) env -i $(jot 500 | awk '{print "testvar_"$0"=dummydummydummydummy"}') sh -c 'ps -wwe -p $$'
2) env -i $(jot 500 | awk '{print "testvar_"$0"=dummydummydummydummy"}') sh -c 'ps -wwe -p $$ --libxo text'
3) env -i $(jot 500 | awk '{print "testvar_"$0"=dummydummydummydummy"}') sh -c 'ps -wwe -p $$ --libxo xml'
Cheers, Jamie
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204031004.233A4X9i000943>
