Re: FWD: Bug#75587: debhelper uses bashisms in /bin/sh scripts
"Sean 'Shaleh' Perry" <shaleh@valinux.com> wrote:
>On 26-Oct-2000 Joey Hess wrote:
>> 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.
>
>geisha [~] $ ash
>\h [\w] \$ command -v ash
>/bin/ash
>\h [\w] \$ type command
>command is a shell builtin
>
>If people would bother to do their homework before submitting bugs ......
For what it's worth, although it may not be a completely POSIX shell and
it isn't *directly* relevant to Debian:
[colinw@freebsd ~]$ /bin/sh
$ command -v sh
-v: not found
Maybe the reporter is a FreeBSD user.
--
Colin Watson [cjw44@flatline.org.uk]
Reply to: