[Pkg-sysvinit-devel] Re: r233 - in sysvinit/trunk/debian: . initscripts/etc/init.d

Thomas Hood jdthood at yahoo.co.uk
Thu Dec 15 16:30:39 UTC 2005


Petter Reinholdtsen wrote:
> [Thomas Hood]
>> Make .sh scripts work even when not given any arguments
> 
> I do not really like this approach.  Incorrect usage of init.d scripts
> should give an error or warning, not be silently ignored.


The .sh scripts are written to be sourcable, and sourced scripts
can't (POSIXly) be given arguments, so these scripts must work
without arguments.  That they also work _with_ an argument,
which they check for validity, is a bonus.  Nothing wrong that
I can see.
-- 
Thomas



More information about the Pkg-sysvinit-devel mailing list