diff options
author | John Southworth <john.southworth@vyatta.com> | 2012-03-22 10:27:10 -0700 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2012-03-22 10:27:10 -0700 |
commit | 75e35444bac07e0511ed74dcdbe89a5b088c79e7 (patch) | |
tree | eacd1799710a4d14dd2afd5099aeb815ad8c9b7a /etc/bash_completion.d | |
parent | 08017ee0641f23b1dd501cc8567da5a6f0fdfdce (diff) | |
download | vyatta-op-75e35444bac07e0511ed74dcdbe89a5b088c79e7.tar.gz vyatta-op-75e35444bac07e0511ed74dcdbe89a5b088c79e7.zip |
Make ping feel like all the other system commands
Diffstat (limited to 'etc/bash_completion.d')
-rw-r--r-- | etc/bash_completion.d/vyatta-op | 4 |
1 files changed, 4 insertions, 0 deletions
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" == "<nocomps>" ]]; then + eval "$restore_shopts" + return + fi echo -en "\nPossible completions:" if [ -z "$cur" -a -n "$node_run" ]; then _vyatta_op_print_help '<Enter>' "Execute the current command" |