What bash version are you using??

bash --version
GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.



HTH

Marvin


On 4/22/11, Robert Citek <[email protected]> wrote:
> 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
>


-- 
Marvin J. Kosmal

Disclaimer: This email is not intended to provide medical advice,
diagnosis or treatment. Views expressed here do not necessarily
reflect those of Farmer Marvin or any of the hens.
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to