Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Wher is an error ?

RE: Wher is an error ?

From: Bowes, Chris <Chris.Bowes_at_kosa.com>
Date: Wed, 27 Jun 2001 16:27:17 -0700
Message-ID: <F001.0033B27A.20010627164109@fatcity.com>

try this.  It works on HP-ux 10.20.  There spaces between the " and the = and the other " on the test line. 

>if [ "$userid" = "xxx" ]
> then
> echo 'aaa'
> else
> echo 'bbb'
> fi

bbb
> echo $userid

xxy
>

>if [ "$userid" = "xxy" ]
> then
> echo 'same'
> else
> echo 'diff'
> fi

same
>

Sorry for the earlier posts.  Didn't read the question fully. Let me know if this works for your setup.

--Chris
Chris.Bowes_at_Kosa.com Received on Wed Jun 27 2001 - 18:27:17 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US