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

Re: service helper package



Stephen Gran wrote:
> This one time, at band camp, Jörg Sommer said:
>> Init scripts should not use Bash, they should be Posix Shell scripts!
> 
> Not strictly true.  A script written for use with #!/bin/sh should use
> the POSIX superset allowed by policy.  A script aimed at bsah should
> just declare it's interpreter as #!/bin/bash.  Generally, you don't need
> to do that, but you are allowed to.

Just bear in mind that packages using such scripts will generate bug
reports if/when someone needs to use the package on a low resource or
embedded system where bash is not available.

Yes, you are allowed to use #!/bin/bash but, IMHO, it is unwise to do so
unless the package itself depends on bash (pre-depends if in preinst) or
is directly related to bash in some other way.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: