From 75e35444bac07e0511ed74dcdbe89a5b088c79e7 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Thu, 22 Mar 2012 10:27:10 -0700 Subject: Make ping feel like all the other system commands --- etc/bash_completion.d/vyatta-op | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index 65dd701..22eea12 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -150,6 +150,10 @@ _vyatta_op_help () [ -f $ndef ] && \ node_run=$( _vyatta_op_get_node_def_field $ndef run ) + if [[ "$1" == "" ]]; then + eval "$restore_shopts" + return + fi echo -en "\nPossible completions:" if [ -z "$cur" -a -n "$node_run" ]; then _vyatta_op_print_help '' "Execute the current command" -- cgit v1.2.3