From owner-freebsd-bugs Mon Jul 29 23:50:02 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA25295 for bugs-outgoing; Mon, 29 Jul 1996 23:50:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA25288; Mon, 29 Jul 1996 23:50:01 -0700 (PDT) Date: Mon, 29 Jul 1996 23:50:01 -0700 (PDT) Message-Id: <199607300650.XAA25288@freefall.freebsd.org> To: freebsd-bugs Cc: From: J Wunsch Subject: Re: conf/1443: Possible bug in /etc/rc Reply-To: J Wunsch Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR conf/1443; it has been noted by GNATS. From: J Wunsch 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. ;-)