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

Re: init script config files

On Fri, Jul 07, 2000 at 05:18:59PM -0700, tony mancill wrote:
> There are two ways around this, but both would require a bit of policy.  
> First, we could force the init.d scripts to use the -u command line option
> to the shell.  (If an unset variable is referenced, the script will die. -
> sorta like -e for the inst scripts.)

That's way evil.  It's perfectly legitimate to test for variable nullity
with mechanisms like this:

if [ "$FOO" ]; then

G. Branden Robinson             |   It's not a matter of alienating authors.
Debian GNU/Linux                |   They have every right to license their
branden@debian.org              |   software however we like.
http://www.debian.org/~branden/ |   -- Craig Sanders, in debian-devel

Attachment: pgp0UWZlpYdR4.pgp
Description: PGP signature

Reply to: