From b10119fc55babd963b979b9ddcec9629d697f479 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 8 Jul 2010 13:53:31 -0700 Subject: fix for bug 5803 * fix positional params handling in shell function. * fix argument handling in perl script. --- etc/bash_completion.d/20vyatta-cfg | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'etc/bash_completion.d') 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() -- cgit v1.2.3