summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-05 14:02:10 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-05 14:02:10 -0800
commite50d6ab805e83a1764cc32967cc216e1366cb079 (patch)
tree1e1ecd1a1fde03c7bde4570d5b11c24752f629d3 /etc/bash_completion.d
parent1b7953907e3c6bb86b227e85485de48d490ea6bc (diff)
parentf260a55468cbfef7faf567c5f6b5b6c2bec28008 (diff)
downloadvyatta-op-e50d6ab805e83a1764cc32967cc216e1366cb079.tar.gz
vyatta-op-e50d6ab805e83a1764cc32967cc216e1366cb079.zip
Merge branch 'master' of phuket.vyatta.com:/usr/local/git/vyatta-op
Diffstat (limited to 'etc/bash_completion.d')
-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 1fc0404..5a672c3 100644
--- a/etc/bash_completion.d/10vyatta-op
+++ b/etc/bash_completion.d/10vyatta-op
@@ -278,7 +278,7 @@ _vyatta_op_run ()
local run_cmd=$(_vyatta_op_get_node_def_field $tpath/node.def run)
local ret=0
if [ -n "$run_cmd" ]; then
- if [ "$1" == "show" ] ; then
+ if [[ -t 1 && "$1" == "show" ]] ; then
( eval "$run_cmd" ) | eval "${VYATTA_PAGER:-cat}"
else
eval "$run_cmd"