summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-08-02 13:48:17 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-08-02 13:48:17 -0500
commit0a889b5701a6502dd12572e7fc24b6a1904de885 (patch)
treec25676030f89383b3d1e7a60e2494369e69a8c56
parentb328fc38020a49fc0425922fb36f640f14558cd0 (diff)
downloadvyatta-op-0a889b5701a6502dd12572e7fc24b6a1904de885.tar.gz
vyatta-op-0a889b5701a6502dd12572e7fc24b6a1904de885.zip
Fix paging problem with short top level show commmand
-rw-r--r--functions/interpreter/vyatta-op-run2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/interpreter/vyatta-op-run b/functions/interpreter/vyatta-op-run
index 33de2f1..02f862b 100644
--- a/functions/interpreter/vyatta-op-run
+++ b/functions/interpreter/vyatta-op-run
@@ -149,7 +149,7 @@ _vyatta_op_run ()
local ret=0
local cmd_regex="^(LESSOPEN=|less|pager|tail|/opt/vyatta/bin/vyatta-tshark-interface-port.pl).*"
if [ -n "$run_cmd" ]; then
- if [[ -t 1 && "$1" == "show" && ! $run_cmd =~ $cmd_regex ]] ; then
+ if [[ -t 1 && "${args[1]}" == "show" && ! $run_cmd =~ $cmd_regex ]] ; then
eval "($run_cmd) | ${VYATTA_PAGER:-cat}"
else
eval "$run_cmd"