scripts/help in rvm-1.0.21 vs scripts/help in rvm-1.0.22
- old
+ new
@@ -13,26 +13,26 @@
args=(${args[@]})
action="${args[$array_start]}"
args[$__array_start]=""
args=(${args[@]})
-pager="${PAGER:-less}"
+pager="${PAGER:-less -X}"
if [[ -n "$command" && -s "${rvm_help_path}/${command}" ]] ; then
if [[ -n "$action" && -s "${rvm_help_path}/${command}/${action}" ]] ; then
- $pager "${rvm_help_path}/${command}/${action}"
+ eval "$pager '${rvm_help_path}/${command}/${action}'"
else
- $pager "${rvm_help_path}/${command}"
+ eval "$pager '${rvm_help_path}/${command}'"
fi
else
- $pager "${rvm_path:-$HOME/.rvm}/README"
+ eval "$pager '${rvm_path:-$HOME/.rvm}/README'"
"$rvm_path/scripts/log" "info" \
"Commands available with 'rvm help':\n\n $(builtin cd "${rvm_help_path}" ; find . -maxdepth 1 -mindepth 1 -type f -print | \tr "\n" ' ' | sed -e 's#./##g')"
fi