[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with egrep and fgrep
From: |
Paul Jarc |
Subject: |
Re: problem with egrep and fgrep |
Date: |
Mon, 13 Sep 2004 16:00:46 -0400 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
address@hidden (Bob Proulx) wrote:
> In it the following is suggested as the best method to find a command
> on PATH.
That's useful, thanks.
> Since 'grep' has no subprocesses it would seem simpler, if that is
> what you want to do, to just to set PATH to '@bindir@':$PATH and then
> execute grep without trying to locate it first.
Works for me. Or, if anyone cares about touching the environment,
it's easy enough to check a single directory:
#!/bin/sh
if test -x '@bindir@'/grep
then exec '@bindir@'/grep -E ${1+"$@"}
else exec grep -E ${1+"$@"}
fi
paul
- Re: problem with egrep and fgrep, (continued)
Message not available
- Message not available
- Re: problem with egrep and fgrep, Ralph Corderoy, 2004/09/02
- Re: problem with egrep and fgrep, Bob Proulx, 2004/09/03
- Message not available
- Re: problem with egrep and fgrep, Ralph Corderoy, 2004/09/07
- Re: problem with egrep and fgrep, Bob Proulx, 2004/09/12
- Re: problem with egrep and fgrep, Paul Jarc, 2004/09/13
- Re: problem with egrep and fgrep, Bob Proulx, 2004/09/13
- Re: problem with egrep and fgrep,
Paul Jarc <=
- Re: problem with egrep and fgrep, Eli Zaretskii, 2004/09/13
- Message not available
- Re: problem with egrep and fgrep, Eric Backus, 2004/09/13
- Re: problem with egrep and fgrep, Bob Proulx, 2004/09/15
- Message not available
- Re: problem with egrep and fgrep, Eric Backus, 2004/09/15
Re: problem with egrep and fgrep, Bob Proulx, 2004/09/12