Permalink
Browse files

if exec is called bypass loading libs.

  • Loading branch information...
1 parent 4dfc577 commit 70e8b9d7caf77c036514b64ac9b6ab7d43f97cee @wayneeseguin wayneeseguin committed Mar 31, 2011
Showing with 6 additions and 1 deletion.
  1. +1 −0 binscripts/rvmsudo
  2. +5 −1 scripts/set
View
@@ -3,6 +3,7 @@
args=()
while [[ $# -gt 0 ]] ; do
token="${1}" ; shift
+
case "${token}" in
--trace)
export PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > "
View
@@ -72,7 +72,11 @@ __rvm_ruby_do()
case "${args[@]}" in
- *[:space:]-S[:space:]*)
+ exec*)
+ command="$binary $rvm_ruby_mode ${args[@]}"
+ ;;
+
+ *[[:space:]]-S[[:space:]]*)
command="$binary $rvm_ruby_mode $rvm_ruby_require -I$load_path ${args[@]}"
;;

0 comments on commit 70e8b9d

Please sign in to comment.