Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jun 2004 22:13:24 +0200
From:      "Cyrille Lefevre" <clefevre-lists@9online.fr>
To:        <arch@FreeBSD.org>
Subject:   Re: Change to "kludge option processing" in /bin/ps
Message-ID:  <200406041933.i54JX9kj040764@mail.gits.dyndns.org>

next in thread | raw e-mail | index | archive | help
why this message does not reach -arch ?
don't know if Garance reeived it also ?

"Garance A Drosihn" <drosih@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@laposte.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406041933.i54JX9kj040764>