summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-10-05 18:08:52 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-05 18:08:52 -0500
commit9355332b8a1e82b988e1997a62f1236b8380dbc0 (patch)
tree6f8ebf3ad12e6f2148b97213800869d06d8e8e10 /etc
parenta4609858b1e5ad183def31198123b637e70845e2 (diff)
downloadvyatta-cfg-9355332b8a1e82b988e1997a62f1236b8380dbc0.tar.gz
vyatta-cfg-9355332b8a1e82b988e1997a62f1236b8380dbc0.zip
Pass through the completion parameters to functions that need them
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/vyatta-cfg18
1 files changed, 9 insertions, 9 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg
index c4cb036..cc169ae 100755
--- a/etc/bash_completion.d/vyatta-cfg
+++ b/etc/bash_completion.d/vyatta-cfg
@@ -122,14 +122,14 @@ vyatta_run_complete ()
local cur=${COMP_WORDS[COMP_CWORD]}
if [[ $COMP_CWORD -eq 0 ]]; then
- vyatta_config_complete
+ vyatta_config_complete "$@"
eval $restore_shopts
return
fi
COMP_WORDS=( "${COMP_WORDS[@]:1}" )
(( COMP_CWORD -= 1 ))
- _vyatta_op_expand
+ _vyatta_op_expand "$@"
if [ -z "$cur" ] ||
[[ "${COMPREPLY[0]}" =~ "$cur" ]]; then
@@ -153,7 +153,7 @@ vyatta_single_word_complete()
shopt -s extglob nullglob
if [[ $COMP_CWORD -eq 0 ]];then
- vyatta_config_complete
+ vyatta_config_complete "$@"
eval $restore_shopts
return
fi
@@ -173,7 +173,7 @@ vyatta_loadsave_complete()
shopt -s extglob nullglob
if [[ $COMP_CWORD -eq 0 ]];then
- vyatta_config_complete
+ vyatta_config_complete "$@"
eval $restore_shopts
return
fi
@@ -238,7 +238,7 @@ vyatta_loadkey_complete()
shopt -s extglob nullglob
if [[ $COMP_CWORD -eq 0 ]];then
- vyatta_config_complete
+ vyatta_config_complete "$@"
eval $restore_shopts
return
fi
@@ -284,7 +284,7 @@ vyatta_rollback_complete ()
shopt -s extglob nullglob
if [[ $COMP_CWORD -eq 0 ]];then
- vyatta_config_complete
+ vyatta_config_complete "$@"
eval $restore_shopts
return
fi
@@ -315,7 +315,7 @@ vyatta_compare_complete ()
shopt -s extglob nullglob
if [[ $COMP_CWORD -eq 0 ]];then
- vyatta_config_complete
+ vyatta_config_complete "$@"
eval $restore_shopts
return
fi
@@ -366,7 +366,7 @@ vyatta_commit_complete ()
shopt -s extglob nullglob
if [[ $COMP_CWORD -eq 0 ]];then
- vyatta_config_complete
+ vyatta_config_complete "$@"
eval $restore_shopts
return
fi
@@ -930,7 +930,7 @@ vyatta_config_default_complete ()
local wc=${#COMP_WORDS[@]}
if (( wc < 2 )) ||
[[ $COMP_CWORD -eq 0 ]]; then
- vyatta_config_complete
+ vyatta_config_complete "$@"
else
# after the first word => cannot be vyatta command so use original default
compopt -o filenames