Re: Switching /bin/sh to dash without dash essential
On 2009-07-23, Manoj Srivastava <firstname.lastname@example.org> wrote:
>> As long as /bin/sh refuses extensions to posix I agree with you, but
>> bashism has been a cuss word for years before 2004.
> Source? Policy does not even ban bashims for maintainer scripts.
Surely not, it just tells you to use bash in the shebang.
You may wish to restrict your script to SUSv3 features plus the above set when
possible so that it may use /bin/sh as its interpreter. If your script works
with dash (originally called ash), it probably complies with the above
requirements, but if you are in doubt, use /bin/bash.