Title: 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
[EMAIL PROTECTED]

Reply via email to