From owner-freebsd-current Sat Aug 21 16:35:35 1999 Delivered-To: freebsd-current@freebsd.org Received: from dt011n65.san.rr.com (dt010nb9.san.rr.com [204.210.12.185]) by hub.freebsd.org (Postfix) with ESMTP id 1F4C514CAC for ; Sat, 21 Aug 1999 16:35:32 -0700 (PDT) (envelope-from Doug@gorean.org) Received: from gorean.org (master [10.0.0.2]) by dt011n65.san.rr.com (8.9.3/8.8.8) with ESMTP id QAA83056; Sat, 21 Aug 1999 16:34:46 -0700 (PDT) (envelope-from Doug@gorean.org) Message-ID: <37BF37A0.769435B3@gorean.org> Date: Sat, 21 Aug 1999 16:34:56 -0700 From: Doug Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.61 [en] (X11; U; FreeBSD 4.0-CURRENT-0815 i386) X-Accept-Language: en MIME-Version: 1.0 To: Warner Losh Cc: current@FreeBSD.ORG Subject: Re: REQ: Test /etc/rc clean-up References: <21889.935137150@axl.noc.iafrica.com> <199908210711.BAA41758@harmony.village.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Warner Losh wrote: > > In message <21889.935137150@axl.noc.iafrica.com> Sheldon Hearn writes: > : -if [ X$start_vinum = XYES ]; then > : +if [ X"${start_vinum}" = X"YES" ]; then > > I never understood why you check against X"YES"? XYES always seemed > much better than X"YES" since the latter is somewhat obscure. Both > are identical... The prevailing shell scripting CW is that putting the X outside the quotes makes it more clear to a casual observer that the X is not part of the value you are testing. Personally I agree with you, I've always thought that "X$VAR" looks cleaner. Doug (assuming I'm understanding your point here...) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message