Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 1996 23:50:01 -0700 (PDT)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-bugs
Subject:   Re: conf/1443: Possible bug in /etc/rc
Message-ID:  <199607300650.XAA25288@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/1443; it has been noted by GNATS.

From: J Wunsch <j@uriah.heep.sax.de>
To: bill@duchess.wagill.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: conf/1443: Possible bug in /etc/rc
Date: Tue, 30 Jul 1996 08:26:23 +0200 (MET DST)

 As William A. Gill wrote:
 
 > 	(I am new to FreeBSD, so not sure of the full syntax of statements
 > 	in /etc/rc).
 
 You're apparently new to Unix at all.
 
 > 	# $namedflags is imported from /etc/sysconfig
 > 	if [ "X${namedflags}" != "XNO" ]; then
 > 		echo -n ' named';               named $namedflags
 > 	fi
 
 :)
 
 Nope.  The quotes are being stripped before the arguments will be
 passed to the utility (the name of the utility is unobvioulsy `test'
 in this case).  Thus
 
 	X"NO"
 	"XNO"
 	XNO
 	"X"NO
 
 are all the same.  The quotes around XNO aren't strictly necessary at
 all, those around the variable (``${namedflags}'' above) will prevent
 the shell from splitting the argument into multiple words if the
 variable contains ``white space''.
 
 I'm going to close the PR if noone beats me on this.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607300650.XAA25288>