NetBSD Problem Report #47476

From jgw@sdf.org  Sun Jan 20 22:57:48 2013
Return-Path: <jgw@sdf.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 3E8C963E6F9
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 20 Jan 2013 22:57:48 +0000 (UTC)
Message-Id: <20130120215430.E40241F25D2@ituner.sleepy.cat>
Date: Sun, 20 Jan 2013 13:54:30 -0800 (PST)
From: jgw@sdf.org
Reply-To: jgw@sdf.org
To: gnats-bugs@NetBSD.org
Subject: pgrep(1) -x behavior changed
X-Send-Pr-Version: 3.95

>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
>Organization:

>Environment:
System: NetBSD ituner.sleepy.cat 6.99.16 NetBSD 6.99.16 (GENERIC) #0:
Fri Jan 18 03:30:55 UTC 2013 builds@b8.netbsd.org:\
/home/builds/ab/HEAD/i386/201301171940Z-obj/\
  home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
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.
>How-To-Repeat:
#-- 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)

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

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.