[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep-2.5.1: broken egrep
From: |
Nelson H. F. Beebe |
Subject: |
Re: grep-2.5.1: broken egrep |
Date: |
Thu, 4 Apr 2002 18:58:52 -0700 (MST) |
An alternative to using
exec $prefix/bin/grep ...
is
exec `dirname $0`/grep ...
This avoids hardcoding a path into the scripts, at the cost of
another process invocation for dirname (possibly several:
on some systems, dirname is itself a shell script).
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- Center for Scientific Computing FAX: +1 801 585 1640, +1 801 581 4148 -
- University of Utah Internet e-mail: address@hidden -
- Department of Mathematics, 110 LCB address@hidden address@hidden -
- 155 S 1400 E RM 233 address@hidden -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe -
-------------------------------------------------------------------------------