Permalink
Browse files

Respect PAGER while still protecting from .rvmrc based attacks.

  • Loading branch information...
wayneeseguin committed Mar 2, 2011
1 parent 9a3565a commit ed4f3a28a08a9e3c1401234549c8b84e71969d1b
Showing with 4 additions and 4 deletions.
  1. +1 −1 scripts/cli
  2. +1 −1 scripts/functions/rvmrc
  3. +1 −1 scripts/help
  4. +1 −1 scripts/list
View
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
__rvm_usage() {
- eval "${PAGER:-less -X} '${rvm_path:-$HOME/.rvm}/README'"
+ eval "${PAGER:-cat -v} '${rvm_path:-$HOME/.rvm}/README'"
}
__rvm_run_script()
View
@@ -164,7 +164,7 @@ __rvm_ask_to_trust()
read anykey
-\less "$1"
+\cat -v "$1"
printf "
View
@@ -13,7 +13,7 @@ args=(${args[@]})
action="${args[$array_start]}"
args[$__array_start]=""
args=(${args[@]})
-pager="${PAGER:-less -X}"
+pager="${PAGER:-cat -v}"
if [[ -n "$command" && -s "${rvm_help_path}/${command}" ]] ; then
View
@@ -204,7 +204,7 @@ list_known()
else
- eval "${PAGER:-less -X} '$rvm_config_path/known'"
+ eval "${PAGER:-cat -v} '$rvm_config_path/known'"
fi

0 comments on commit ed4f3a2

Please sign in to comment.