[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with egrep and fgrep
From: |
Stepan Kasal |
Subject: |
Re: problem with egrep and fgrep |
Date: |
Wed, 1 Sep 2004 11:26:19 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Tue, Aug 31, 2004 at 10:40:22AM -0700, Warren L Dodge wrote:
> cat egrep
> #!/bin/sh
> exec grep -E ${1+"$@"}
> I think the egrep and fgrep were links to grep rather then a small script.
Yes, that's the traditional UNIX approach.
But I think tehy were different binaries for quite a long time, then links
for a short time.
The current approach is required of GNU coding standards, though it generates
some protests.
> It seems that the script should use $0 to calculate the path for grep.
That would slow down the wrapper. I suggest that you add the full path to
the scripts.
But the best solution is probably to move to "grep -E" and "grep -F" --
these are standardized by POSIX, while egrep and fgrep commands are not.
Sorry,
Stepan Kasal
- Re: problem with egrep and fgrep,
Stepan Kasal <=
- Message not available
Message not available