openssh-unix-dev Digest, Vol 23, Issue 8 -- using grep

Greg.Dunkel at mail.cuny.edu Greg.Dunkel at mail.cuny.edu
Sat Mar 5 03:18:25 EST 2005


The following message

From: Thomas Binder <binder at arago.de>
Subject: Re: Call for release testing
To: openssh-unix-dev at mindrot.org
Message-ID: <20050304103859.GA7104817 at ohm.arago.de>
Content-Type: text/plain; charset="us-ascii"

Hi!

On Fri, Mar 04, 2005 at 07:34:59PM +1100, Darren Tucker wrote:
> > Otherwise we could use grep -q "$PID"
>
> That's racy since it might find the argument to grep depending
> on the scheduling.

Also note that not all flavours of `grep' support `-q'. At least
IRIX 6.x and Solaris 7/8 don't.


Ciao

Is not entirely accurate;  there are two versions of grep on Solaris 7/8.
The one in /usr/bin doesn't support -q but the one in /usr/xpg4/bin does.

Need to use a complete path.

/greg





More information about the openssh-unix-dev mailing list