Works for me:

$ EBS="/net/dbvol"

$ if [ "${EBS}" == "/net/dbvol" ]; then echo yes ;else echo no ; fi
yes

$ EBS="/net/dbvolx"

$ if [ "${EBS}" == "/net/dbvol" ]; then echo yes ;else echo no ; fi
no

I suspect the error is elsewhere.

Regards,
- Robert

On Fri, Apr 22, 2011 at 5:26 PM, Russell Johnson <[email protected]> wrote:
> Does anyone see why I get "Unexpected Operator" with the following:
>
> if [ "${EBS}" == "/net/dbvol" ]; then
>
> Russell Johnson
> [email protected]
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to