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

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



Ben Gertzfield wrote:
> >>>>> "Joey" == Joey Hess <joeyh@debian.org> writes:
> 
>     Joey> I could use "test -x" rather than command, but this breaks
>     Joey> as soon as any of the programs move to a new location (this
>     Joey> has happened in the past). Ash supports command -v, as does
>     Joey> bash. AFAIK, command is in posix, but the -v switch may not
>     Joey> be.
> 
> How about 'env programname' instead of 'test -x' or 'command -v' ?

Eh? "env command" runs the command, doesn't it?

joey@silk:~>env ls
CVS  GNUstep   bin  debian  doc  html  lib  mail  src  tmp

-- 
see shy jo



Reply to: