Re: FWD: Bug#75587: debhelper uses bashisms in /bin/sh scripts
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.
Use "type suidregister >/dev/null"; type is a builtin of sh, as
far as I know.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Whosoever therefore shall be ashamed of me and of my
words in this adulterous and sinful generation; of him
also shall the Son of man be ashamed, when he cometh
in the glory of his Father with the holy angels."
Mark 8:38
Reply to: