Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Wher is an error ?
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