This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Possible bug in pgrep (procps)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]