Package: procps Version: 1:3.3.0-1 Severity: important pgrep -U option works pgrep -u option does not work
This is new for 1:3.3.0. I had script using this for getmail4 package. === test code: xpgrep === #!/bin/sh # vim:se tw=78 sts=4: PROG=$(basename $0) echo $PROG set -x UID=$(id -u) EUID=$(id -un) echo $(pgrep $PROG) echo $(pgrep -U osamu $PROG) echo $(pgrep -Uosamu $PROG) echo $(pgrep -U $UID $PROG) echo $(pgrep -U$UID $PROG) echo $(pgrep -u 1000 $PROG) echo $(pgrep -u1000 $PROG) echo $(pgrep -u $EUID $PROG) echo $(pgrep -u$EUID $PROG) === END of xpgrep === Under user account "osamu" at UID 1000, I run this and get the following output: $ ./xpgrep xpgrep + id -u + UID=1000 + id -un + EUID=osamu + pgrep xpgrep + echo 20306 20306 + pgrep -U osamu xpgrep + echo 20306 20306 + pgrep -Uosamu xpgrep + echo 20306 20306 + pgrep -U 1000 xpgrep + echo 20306 20306 + pgrep -U1000 xpgrep + echo 20306 20306 + pgrep -u 1000 xpgrep + echo + pgrep -u1000 xpgrep + echo + pgrep -u osamu xpgrep + echo + pgrep -uosamu xpgrep + echo $ -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.1.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages procps depends on: ii initscripts 2.88dsf-13.13 ii libc6 2.13-21 ii libncurses5 5.9-4 ii libtinfo5 5.9-4 ii lsb-base 3.2-28 Versions of packages procps recommends: ii psmisc 22.14-1 procps suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

