Re: FWD: Bug#75587: debhelper uses bashisms in /bin/sh scripts
On Thu, 26 Oct 2000 at 09:00:31 -0700, Sean 'Shaleh' Perry wrote:
> > [colinw@freebsd ~]$ /bin/sh
> > $ command -v sh
> > -v: not found
> > Maybe the reporter is a FreeBSD user.
> I was under the impression freebsd used ash.
4.0-RELEASE, for what it's worth. It may be an older version, I'm not
familiar enough with the *BSDs to know. The man page claims that it's
"in the process of being changed to conform with ... POSIX.2", and looks
like it has common ancestry with Debian ash but has gone along a
slightly different fork.
Note that the ash man page on Debian doesn't document command -v.
> ksh man page implies command and command -v are posix as well.
Oh, I'm not arguing with that, just noting that the bug reporter might
just have done his homework in slightly the wrong place rather than
failed to do it at all. God knows shells vary wildly. In shell code that
needs to run on all the Unices here I use 'type' instead, although it's
a little more awkward.
Colin Watson [firstname.lastname@example.org]