Re: Change to "kludge option processing" in /bin/ps
From: Cyrille Lefevre (clefevre-lists_at_9online.fr)
Date: 06/03/04
- Previous message: Garance A Drosihn: "Re: New TCP/IP checksum code and a HOWTO on how to modernize and fix FreeBSD's FP-unit use in the kernel (was Re: ether_crc32_[bl]e())"
- Maybe in reply to: Garance A Drosihn: "Re: Change to "kludge option processing" in /bin/ps"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <arch@freebsd.org> Date: Thu, 3 Jun 2004 22:13:24 +0200
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 _______________________________________________ freebsd-arch@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Garance A Drosihn: "Re: New TCP/IP checksum code and a HOWTO on how to modernize and fix FreeBSD's FP-unit use in the kernel (was Re: ether_crc32_[bl]e())"
- Maybe in reply to: Garance A Drosihn: "Re: Change to "kludge option processing" in /bin/ps"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|