Sorry. Not legal bash syntax. Only valid if you use the external test
program in /bin a la

if /bin/test ...

-- 
-Time flies like the wind. Fruit flies like a banana. [EMAIL PROTECTED]
-Stranger things have happened but none stranger than this. Steven W. Orr-
Does your driver's license say Organ Donor?Black holes are where God \
-------divided by zero. Listen to me! We are all individuals!---------

On Thu, 20 Apr 2000, Steve Feehan wrote:

=>On Wed, 19 Apr 2000, SoloCDM wrote:
=>
=>> Can the following bash script "if" statement be shortened/condensed?
=>> 
=>>      if [ "$MANS" = "y" ] || [ "$MANS" = "Y" ]
=>> 
=>> *********************************************************************
=>> Signed,
=>> SoloCDM
=>> 
=>
=>  if [ $MANS = 'y' -o $MANS = 'Y' ]
=>
=>It's a bit shorter. I'm assuming that $MANS is a variable and if so you
=>don't want the qoutes around it. Although ${MANS} would be correct.
=>
=>Steve


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to