Package: procps
Version: 3.2.8-9

According to the POSIX spec for the "-o" option of the ps command
(http://www.opengroup.org/onlinepubs/9699919799/utilities/ps.html):

"The field widths shall be selected by the system to be at least as
wide as the header text (default or overridden value)."

The 3.2.8 version of procps violates this specification.  To reproduce:

  ln -s /bin/sleep hellohellohowareyou  # Create command with long name
  ./hellohellohowareyou 180 & # run it in the background
  ps -o comm=XXXXXXXXXXXXXXXXXXXX # Do "ps -o" with a wide field header

You will find the process name gets truncated to 15 characters
("hellohellohowar") no matter how wide you make the overridden header
text.

This actually caused me some trouble with an old shell script I am
migrating from Solaris, which does not have this bug.

Thanks!



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to