Date: Sat, 21 Aug 1999 16:34:56 -0700 From: Doug <Doug@gorean.org> To: Warner Losh <imp@village.org> Cc: current@FreeBSD.ORG Subject: Re: REQ: Test /etc/rc clean-up Message-ID: <37BF37A0.769435B3@gorean.org> References: <21889.935137150@axl.noc.iafrica.com> <199908210711.BAA41758@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37BF37A0.769435B3>