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 <r...@dimstar.net> wrote:
> Does anyone see why I get "Unexpected Operator" with the following:
>
> if [ "${EBS}" == "/net/dbvol" ]; then
>
> Russell Johnson
> r...@dimstar.net
_______________________________________________
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to