NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/47476: pgrep(1) -x behavior changed

>Number:         47476
>Category:       bin
>Synopsis:       'pgrep -x' now expects full_path to match
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 20 23:00:00 +0000 2013
>Originator:     Jeff G Woodall
>Release:        NetBSD 6.99.16
System: NetBSD 6.99.16 NetBSD 6.99.16 (GENERIC) #0:
Fri Jan 18 03:30:55 UTC 2013\
  home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
pgrep(1) -x behavior has changed in that is seems to now require the
full path as well as the full process name.  This may break scripts that
rely on the previous behavior which only required full name of process
to return a match.
#-- current --
% uname -rs
NetBSD 6.99.16
% pgrep -l ntpd
311 ntpd
% pgrep -lx ntpd

% pgrep -lx $(which ntpd)
311 ntpd

#-- 5.1.x --
% uname -rs
NetBSD 5.1.0_PATCH
% pgrep -l ntpd
311 ntpd
% pgrep -lx ntpd
311 ntpd
% pgrep -lx $(which ntpd)

Either document the behaviour change in the man page or fix the source code...

Home | Main Index | Thread Index | Old Index