From 6dfd012e6828e3ab2995e17b5af3201f65f2cfc2 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 9 Oct 2006 04:29:27 +0000 Subject: fix shell escaping bug in append() function git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4981 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/default/etc/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/default/etc/functions.sh b/package/base-files/default/etc/functions.sh index ce22ed151c..2ce172eb35 100755 --- a/package/base-files/default/etc/functions.sh +++ b/package/base-files/default/etc/functions.sh @@ -25,7 +25,7 @@ append() { local var="$1" local value="$2" local sep="${3:- }" - eval "export ${var}=\"\${${var}:+\${${var}}${value:+$sep}}$value\"" + eval "export ${var}=\"\${${var}:+\${${var}}${value:+$sep}}\$value\"" } reset_cb() { -- cgit v1.2.3