ps(1) with '-ww' / libxo truncating output
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 03 Apr 2022 10:04:33 UTC
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