From: Roy Marples Date: Mon, 20 Apr 2009 12:34:08 +0000 (+0000) Subject: Fix quoting X-Git-Tag: v5.0.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba5a9fd20b36523240a9cb3f7c6f4d7d6da4efde;p=thirdparty%2Fdhcpcd.git Fix quoting --- diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in index 15239c52..f9fc1efe 100644 --- a/dhcpcd-run-hooks.in +++ b/dhcpcd-run-hooks.in @@ -49,11 +49,11 @@ list_interfaces() # but sed may not always be available at the time. key_get_value() { - local key=$1 value= x= line= + local key="$1" value= x= line= shift if type sed >/dev/null 2>&1; then - sed -n "s/^${key}//p" $@ + sed -n "s/^$key//p" $@ else for x; do while read line; do @@ -69,7 +69,7 @@ key_get_value() # but sed may not always be available at the time. remove_markers() { - local m1=$1 m2=$2 x= line= in_marker=0 + local m1="$1" m2="$2" x= line= in_marker=0 shift; shift if type sed >/dev/null 2>&1; then