On Mon, Apr 13, 1998 at 01:10:12PM -0400, Adam P. Harris wrote:
> if [ -x /usr/sbin/config-bar ]; then config-bar foo ; fi

> Therefore I decided this approach was superior:
> if command -v config-bar >/dev/null 2>&1 ; then config-bar foo ; fi

Don't both of these assume that config-bar is on the path?
Although that is reasonable for /usr/sbin, if the path has changed
as you hypothesise then perhaps the new path is not.


Hamish
-- 
Hamish Moffatt, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to