From 59004bc45f055cc9a950f324c36f6cc7df60d9c3 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Mon, 15 Aug 2011 16:54:58 -0500 Subject: Allow config mode completion to work when not at the end of the string --- etc/bash_completion.d/vyatta-cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index 587df1e..cacf365 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -552,7 +552,7 @@ vyatta_config_complete () return fi - local -a api_args=("${COMP_WORDS[@]}") + local -a api_args=("${COMP_WORDS[@]:0:$[$COMP_CWORD+1]}") # handle "copy" and "rename" if [ "$command" == "copy" -o "$command" == "rename" ]; then -- cgit v1.2.3