summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d/20vyatta-cfg
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-07-08 13:53:31 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-07-08 13:53:31 -0700
commitb10119fc55babd963b979b9ddcec9629d697f479 (patch)
treed13f6c045b34a0dfb9c165e2449fc4eea37aec17 /etc/bash_completion.d/20vyatta-cfg
parent6307d0950019a6046c33ab5708414a5636801a3f (diff)
downloadvyatta-cfg-b10119fc55babd963b979b9ddcec9629d697f479.tar.gz
vyatta-cfg-b10119fc55babd963b979b9ddcec9629d697f479.zip
fix for bug 5803
* fix positional params handling in shell function. * fix argument handling in perl script.
Diffstat (limited to 'etc/bash_completion.d/20vyatta-cfg')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg5
1 files changed, 1 insertions, 4 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index af9a1b4..f0f621b 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -448,10 +448,7 @@ comment()
if [ "$#" -eq "0" ]; then
return 0
fi
- args=("$@")
- #now need to replace last element
- args[${#args[*]}-1]="\"${args[${#args[*]}-1]i}\"";
- eval "${vyatta_sbindir}/vyatta-comment-config.pl ${args[*]}"
+ ${vyatta_sbindir}/vyatta-comment-config.pl "$@"
}
activate()