From 4bcb64be231ee40201f995a5d090de05d40981a6 Mon Sep 17 00:00:00 2001 From: Caio Chassot Date: Tue, 29 Jun 2010 14:44:02 +0800 Subject: [PATCH] Fix rvm_ruby_configure_flags so that it only replaces commas with spaces 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. --- scripts/cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cli b/scripts/cli index b29f256761..d1c1391799 100644 --- a/scripts/cli +++ b/scripts/cli @@ -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"