|
From: | Chris Hughes |
Subject: | grep-2.5.1a egrep/fgrep PATH problem |
Date: | Wed, 22 Jun 2005 20:57:22 +0100 (BST) |
Hiya,The egrep/fgrep wrappers assume that grep-2.5.1a is the first grep on the user's PATH:
#!/bin/sh exec grep -E ${1+"$@"}So if I install into in /usr/gnu/ (on Solaris for example) and run /usr/gnu/bin/fgrep then it's possible that it will end up running /usr/bin/grep.
Perhaps this wrapper should hardcode in the GNU 2.5.1a grep binary, or run grep from the same directory?
ta, Chris
[Prev in Thread] | Current Thread | [Next in Thread] |