Closes: #9 ps: Remove Unix98 output limitations
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: Craig Small <csmall@enc.com.au>
This commit is contained in:
@ -322,7 +322,7 @@ extern char *myname;
|
||||
|
||||
/* sortformat.c */
|
||||
extern int defer_sf_option(const char *arg, int source);
|
||||
extern const char *process_sf_options(int localbroken);
|
||||
extern const char *process_sf_options();
|
||||
extern void reset_sortformat(void);
|
||||
|
||||
/* select.c */
|
||||
|
Reference in New Issue
Block a user