summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2008-03-21 14:39:04 -0700
committerTom Grennan <tgrennan@vyatta.com>2008-03-21 14:39:04 -0700
commitae08c7412f3617e5873430064b7010f2a38993dd (patch)
treecc2dac1dde3269281418ef2a5a4df660855a0f17 /etc
parent7612557a0ad1ae9c965c1d836038f2a5a18ddb41 (diff)
downloadvyatta-op-ae08c7412f3617e5873430064b7010f2a38993dd.tar.gz
vyatta-op-ae08c7412f3617e5873430064b7010f2a38993dd.zip
donot pipe through VYATTA_PAGER if run_cmd begins with LESSOPEN, less, pager, or tail
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/10vyatta-op2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/bash_completion.d/10vyatta-op b/etc/bash_completion.d/10vyatta-op
index 3313167..24082e8 100644
--- a/etc/bash_completion.d/10vyatta-op
+++ b/etc/bash_completion.d/10vyatta-op
@@ -321,7 +321,7 @@ _vyatta_op_run ()
local ret=0
if [ -n "$run_cmd" ]; then
if [[ -t 1 && "$1" == "show" && \
- ! $run_cmd =~ ^\(less\|more\|most\|pager\|tail\).* ]] ; then
+ ! $run_cmd =~ ^\(LESSOPEN=\|less\|pager\|tail\).* ]] ; then
eval "($run_cmd) | ${VYATTA_PAGER:-cat}"
else
eval "$run_cmd"