riak-admin incompatible with bash version 3.1.17

Ken Sedgwick ksedgwic at bonsai.com
Thu Jan 28 17:28:18 EST 2010


The following regexp was added to line 31 of riak-admin:

     if [[ "$NAME_ARG" =~ (@.*) ]]; then
         NAME_HOST=${BASH_REMATCH[1]}
     else
         NAME_HOST=""
     fi

In my vm.args I have "-name riak".

Using GNU bash, version 3.1.17(1)-release (x86_64-redhat-linux-gnu):

if [[ "-name riak" =~ (@.*) ]]; then echo true; else echo false; fi
-bash: unexpected argument `(' to conditional binary operator
-bash: syntax error near `(@'

Using GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)

if [[ "-name riak" =~ (@.*) ]]; then echo true; else echo false; fi
false

I'll try and upgrade my bash version on the target machines ...

Ken

-- 
Ken Sedgwick
Bonsai Software, Inc.
http://www.bonsai.com/ken/
(510) 610-4162
ken+5a4 at bonsai.com
Public Key: http://www.bonsai.com/ken/ken.asc
GPG Fingerprint: 851E 3B07 E586 0843 9434  5CC7 4033 3B9B 3F3F 9640




More information about the riak-users mailing list