Change to "kludge option processing" in /bin/ps
Cyrille Lefevre
clefevre-lists at 9online.fr
Fri Jun 4 12:40:55 PDT 2004
why this message does not reach -arch ?
don't know if Garance reeived it also ?
"Garance A Drosihn" <drosih at rpi.edu> wrote:
> At 5:08 PM +0200 5/31/04, Cyrille Lefevre wrote:
> >
> >before to commit new changes, think about how to fix the
> >following ones :)
> >
> ># ps -p ,,
> > PID TT STAT TIME COMMAND
> > 0 ?? ZW 0:00.00 (sshd)
> ># psx -p ,,
> >psx: no process id specified
>
> The above issue was pretty trivial to fix, and I have committed a
> change which should fix it.
ok, let's try another issue :
# ps -G " nobody "
PID TT STAT TIME COMMAND
75483 con- S 0:10.97 /usr/local/sbin/junkbuster configfile
# ps -G ,nobody,
ps: Invalid (zero-length) group name
ps: Invalid (zero-length) group name
# ps -G ,
ps: Invalid (zero-length) group name
ps: Invalid (zero-length) group name
instead of :
# ps -G " nobody "
PID TT STAT TIME COMMAND
75483 co- S 0:10.97 /usr/local/sbin/junkbuster configfile
# ps -G ,nobody,
PID TT STAT TIME COMMAND
75483 co- S 0:10.97 /usr/local/sbin/junkbuster configfile
# ps -G ,
psx: no group name or id specified
why do you make a difference while parsing commas and spaces ?
in other words, ignore empty values (which may be generated by
a shell script, so, don't warn), except if all values are empty.
Cyrille Lefevre.
--
home: mailto:cyrille.lefevre at laposte.net
More information about the freebsd-arch
mailing list