From ae08c7412f3617e5873430064b7010f2a38993dd Mon Sep 17 00:00:00 2001 From: Tom Grennan Date: Fri, 21 Mar 2008 14:39:04 -0700 Subject: donot pipe through VYATTA_PAGER if run_cmd begins with LESSOPEN, less, pager, or tail --- etc/bash_completion.d/10vyatta-op | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') 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" -- cgit v1.2.3