Your message dated Sun, 3 Jan 2016 15:13:47 +1100
with message-id <[email protected]>
and subject line Re: procps: ps -p should accept and empty list (and output
nothing)
has caused the Debian Bug report #413384,
regarding [ps] -p should accept and empty list (and output nothing)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
413384: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413384
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: procps
Version: 1:3.2.7-3
Severity: wishlist
Hi,
It would be very useful if ps -p "" and similar would accept the empty
list of pids, output nothing and exit successfully. Now I have to
special case the "no such process" case in my scripts, which is
uncomfortable and error prone.
Thanks,
Feri.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages procps depends on:
ii libc6 2.3.6.ds1-11 GNU C Library: Shared libraries
ii libncurses5 5.5-5 Shared libraries for terminal hand
ii lsb-base 3.1-23 Linux Standard Base 3.1 init scrip
Versions of packages procps recommends:
ii psmisc 22.3-1 Utilities that use the proc filesy
-- no debconf information
--- End Message ---
--- Begin Message ---
A script should test for an empty pid list (possibly test -z but there
are other ways. ps trying to work out what someone is doing will
probably lead to other problems.
You could have:
ps (null)
ps -p (null)
ps -o pid,cmd -p (null)
ps -p (null) -o pid,cmd
and probably a bunch of others. ps argument parsing is complex enough
without having to test for odd invalid arguments too.
- Craig
--
Craig Small (@smallsees) http://enc.com.au/ csmall at : enc.com.au
Debian GNU/Linux http://www.debian.org/ csmall at : debian.org
GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5
--- End Message ---