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

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



> 
>   [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.

Under pdksh:

ksh /tmp/test.sh 
/bin/sh

test.sh is:
set -o posix

command -v sh


this tells ksh to only handle posix code.

ksh man page implies command and command -v are posix as well.



Reply to: