Permalink
Browse files

Fix rvm_ruby_configure_flags so that it only replaces commas with spa…

…ces when they precede another option, thus allowing option values to contain commas.

Which is to say, `rvm install ruby-1.9.2-head -C --with-arch=x86_64,i386` now works.
  • Loading branch information...
1 parent 5a1f762 commit 4bcb64be231ee40201f995a5d090de05d40981a6 @kch kch committed with wayneeseguin Jun 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/cli
View
@@ -330,7 +330,7 @@ __rvm_parse_args() {
-C|--configure)
if [[ ! -z "$1" ]] ; then
- rvm_ruby_configure_flags="$(echo $1 | tr ',' ' ')"
+ rvm_ruby_configure_flags="$(echo $1 | sed -e 's#,--# --#g')"
shift
else
rvm_action="error"

0 comments on commit 4bcb64b

Please sign in to comment.