Skip to content
  • Craig Small's avatar
    Closes: #9 ps: Remove Unix98 output limitations · b2f49b10
    Craig Small authored
    
    
    ps previously followed the Unix98 standard when it comes to
    user-defined output, sometimes. This meant you could have
    user output format with a header that included commas and
    equals signs. It was dependent on if ps thought you wanted
    sysv or bsd format and THAT was dependent on things in previous
    options.
    
    It was very confusing to a user because
     ps p $$ -o pid=,comm=
    gave you a two-column output but
     ps -p $$ -o pid=,comm=
    would give you a one column output with the header ",comm="
    
    The -p versus p means (to ps) you want sysv or bsd parsing.
    Unix98 standard or not, this is plainly just silly.
    
    The commit removes any of the quirks Unix98 has with user defined
    output.  If you really wanted a ps header with commas in the output,
    today isn't your day.
    
    Signed-off-by: default avatarCraig Small <csmall@enc.com.au>
    b2f49b10