[PLUG] bash test...
Robert Citek
robert.citek at gmail.com
Sat Apr 23 01:26:02 UTC 2011
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 <russ at dimstar.net> wrote:
> Does anyone see why I get "Unexpected Operator" with the following:
>
> if [ "${EBS}" == "/net/dbvol" ]; then
>
> Russell Johnson
> russ at dimstar.net
More information about the PLUG
mailing list