diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-05 18:08:52 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-05 18:08:52 -0500 |
commit | 9355332b8a1e82b988e1997a62f1236b8380dbc0 (patch) | |
tree | 6f8ebf3ad12e6f2148b97213800869d06d8e8e10 | |
parent | a4609858b1e5ad183def31198123b637e70845e2 (diff) | |
download | vyatta-cfg-9355332b8a1e82b988e1997a62f1236b8380dbc0.tar.gz vyatta-cfg-9355332b8a1e82b988e1997a62f1236b8380dbc0.zip |
Pass through the completion parameters to functions that need them
-rwxr-xr-x | etc/bash_completion.d/vyatta-cfg | 18 |
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 |