Skip to content

Commit

Permalink
Someday the subtle differences between zsh and bash are going to driv…
Browse files Browse the repository at this point in the history
…e me batty :-p
  • Loading branch information
wayneeseguin committed Sep 1, 2010
1 parent 9f37286 commit 44e3aa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/cli
Expand Up @@ -179,7 +179,7 @@ __rvm_parse_args() {
rvm_ruby_strings="${1//,/ }" ; shift
unset rvm_ruby_interpreter
else
if "$rvm_scripts_path"/match "ruby rbx jruby macruby ree rubinius maglev mput shyouhei ironruby" "$1" ; then
if [[ "ruby rbx jruby macruby ree rubinius maglev mput shyouhei ironruby" =~ $1 ]] ; then
rvm_ruby_strings=$1
rvm_ruby_interpreter=$1
shift
Expand Down
4 changes: 2 additions & 2 deletions scripts/selector
Expand Up @@ -377,7 +377,7 @@ __rvm_ruby_string() {

__rvm_unset_ruby_variables

for string in ${ruby_string//-/ } ; do
for string in $(printf "${ruby_string//-/ }") ; do
if [[ "head" = "$string" ]] ; then
rvm_ruby_revision="head"
unset rvm_ruby_patch_level rvm_ruby_revision rvm_ruby_tag
Expand Down Expand Up @@ -429,7 +429,7 @@ __rvm_ruby_string() {
rvm_ruby_bits="$string"
elif "$rvm_scripts_path/match" "$string" "^n" ; then
rvm_ruby_name="${string/n/}"
elif "$rvm_scripts_path/match" "ruby rbx jruby macruby ree rubinius maglev mput shyouhei ironruby " "$string " ; then
elif [[ "ruby rbx jruby macruby ree rubinius maglev mput shyouhei ironruby " =~ "$string " ]] ; then
# NOTE: The space at the end of each of the above strings is *very* important.
rvm_ruby_interpreter="$string"
else
Expand Down

0 comments on commit 44e3aa2

Please sign in to comment.