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

Petter Reinholdtsen pere at hungry.com
Thu Dec 15 15:35:49 UTC 2005


[Thomas Hood]
> 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.

Yes, you are right when it comes to .sh scripts.  I thought about the
non-.sh scripts, but failed to write it.

We have no choice for the .sh scripts, they will have to keep working
without an argument, but the rest I believe should give an error in
that case.

(And the POSIX spec should be changed to require /bin/sh scripts to
pass on arguments when sourcing. :)



More information about the Pkg-sysvinit-devel mailing list