summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d/vyatta-cfg
diff options
context:
space:
mode:
Diffstat (limited to 'etc/bash_completion.d/vyatta-cfg')
-rwxr-xr-xetc/bash_completion.d/vyatta-cfg2
1 files changed, 1 insertions, 1 deletions
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