bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep-2.5.1a egrep/fgrep PATH problem


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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]