X-Spam-Check-By: sourceware.org
X-T2-Posting-ID: dCnToGxhL58ot4EWY8b+QGwMembwLoz1X2yB7MdtIiA=
X-Cloudmark-Score: 0.000000 []
Date: Tue, 18 Jul 2006 00:09:23 +0200
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: cygwin@cygwin.com
Subject: Re: Possible bug in pgrep (procps)
Message-ID: <20060717220923.GD4546@bouh.residence.ens-lyon.fr>
Mail-Followup-To: cygwin@cygwin.com
References: <3820.130.240.136.130.1153173646.squirrel@pinus.tt.luth.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <3820.130.240.136.130.1153173646.squirrel@pinus.tt.luth.se>
User-Agent: Mutt/1.5.9i-nntp
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Bengt-Arne Fjellner, le Tue 18 Jul 2006 00:00:46 +0200, a écrit :
> pgrep from procps-3.2.6-1 when asking for an exact match with arguments seems to
> demand an extra space after the argument.
> See the following sequence.
> 
> No space after the f on the commandline
> $ emacs f&
> [1] 2072
> 
> without extra space
> $ pgrep  -x -f "emacs f"
> 
> with extra space after f
> $ pgrep  -x -f "emacs f "
> 2072
> 
> Bug or my misunderstanding ?

At least linux doesn't want the extra space:

¤ sleep 1h &
¤ pgrep -x -f "sleep 1h"
6974
7422
¤ pgrep -x -f "sleep 1h "

Samuel

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

