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

Re: FWD: Bug#75587: debhelper uses bashisms in /bin/sh scripts



Joey Hess <joeyh@debian.org> writes:

> I could use "test -x" rather than command, but this breaks as soon as
> any of the programs move to a new location (this has happened in the
> past). Ash supports command -v, as does bash. AFAIK, command is in 
> posix, but the -v switch may not be.

FWIW, both `command -v' and `type' are part of Single UNIX:

    http://www.opengroup.org/onlinepubs/007908799/xcu/command.html
    http://www.opengroup.org/onlinepubs/007908799/xcu/type.html

`which' is not.  I prefer `command -v', but I don't know why.

-- 
	 Carey Evans  http://home.clear.net.nz/pages/c.evans/



Reply to: