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

Re: lintian warnings (help)



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, hamish@debian.org, hamish@rising.com.au, hmoffatt@mail.com
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 debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: