Skip to content

Instantly share code, notes, and snippets.

@aurelian
Created February 11, 2010 10:02
Show Gist options
  • Save aurelian/301384 to your computer and use it in GitHub Desktop.
Save aurelian/301384 to your computer and use it in GitHub Desktop.
stalingrad ~ $ rvm install 1.9.1
/Users/aurelian/.rvm/scripts/match: line 8: conditional binary operator expected
/Users/aurelian/.rvm/scripts/match: line 8: syntax error near `=~'
/Users/aurelian/.rvm/scripts/match: line 8: ` [[ "$1" =~ $2 ]]'
/Users/aurelian/.rvm/scripts/match: line 8: conditional binary operator expected
/Users/aurelian/.rvm/scripts/match: line 8: syntax error near `=~'
/Users/aurelian/.rvm/scripts/match: line 8: ` [[ "$1" =~ $2 ]]'
/Users/aurelian/.rvm/scripts/match: line 8: conditional binary operator expected
/Users/aurelian/.rvm/scripts/match: line 8: syntax error near `=~'
/Users/aurelian/.rvm/scripts/match: line 8: ` [[ "$1" =~ $2 ]]'
/Users/aurelian/.rvm/scripts/match: line 8: conditional binary operator expected
/Users/aurelian/.rvm/scripts/match: line 8: syntax error near `=~'
/Users/aurelian/.rvm/scripts/match: line 8: ` [[ "$1" =~ $2 ]]'
/Users/aurelian/.rvm/scripts/match: line 8: conditional binary operator expected
/Users/aurelian/.rvm/scripts/match: line 8: syntax error near `=~'
/Users/aurelian/.rvm/scripts/match: line 8: ` [[ "$1" =~ $2 ]]'
Unrecognized command line argument: '1.9.1' ( see: 'rvm usage' )
stalingrad ~ $ ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin8.11.1]
stalingrad ~ $ gem --version
1.3.5
stalingrad ~ $ rvm --version
rvm 0.1.12
@aurelian
Copy link
Author

@wrelly:

cd /tmp
wget http://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz
tar -xzvf bash-4.1.tar.gz
cd bash-4.1
./configure

then:

make

that should build a bash binary in the current folder. you can backup your old version before, let's say:

sudo mv /bin/bash /bin/bash.old

and then install the new one with:

sudo cp bash /bin/bash

@wreilly
Copy link

wreilly commented Jul 22, 2010

@aurelian

Many Thanks!

I put this GNU Bash-4.1 onto both of my MacBook Pros:

  • on my PowerPC (10.4.11) with success (h'rray)
  • on my Intel 'x86' (10.4.11) which caused some oddities (e.g. malloc error on using 'find' & other stuff). Had to revert to Bash 2.05.

So, I'm still in quest of an 'x86' Bash 4 for Mac OS X 10.4
Is there one at GNU ?

I am working on trying one with many Dependencies (expat, ncurses and beyond) at HMUG
http://archive.hmug.org/BSD/Applications/Shells/bash/README.bash-4.0-1p35-osx4-x86.html

Thanks again, this has been helpful.

William Reilly

@aurelian
Copy link
Author

all right!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment