On Fri, Apr 22, 2011 at 11:42 PM, Russell Johnson <r...@dimstar.net> wrote: > > On Apr 22, 2011, at 6:26 PM, Robert Citek wrote: > >> Works for me: >> >> $ EBS="/net/dbvol" >> >> $ if [ "${EBS}" == "/net/dbvol" ]; then echo yes ;else echo no ; fi >> yes > > Making it a single equal sign resolved the issue. > > I am using bash 4.1.5 on Ubuntu 10.04.
That worked for me, too: $ lsb_release -d Description: Ubuntu 10.04.2 LTS $ echo $BASH_VERSION 4.1.5(1)-release $ EBS="/net/dbvol" $ if [ "${EBS}" == "/net/dbvol" ]; then echo yes ;else echo no ; fi yes $ 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 $ if [ "${EBS}" = "/net/dbvol" ]; then echo yes ;else echo no ; fi no Regards, - Robert _______________________________________________ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug