From ba3248e6d23f80f03bed9093891fdfdaf736b2b8 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 4 Dec 2007 14:18:41 +0000 Subject: Preserve IFS correctly --- sh/net.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sh/net.sh b/sh/net.sh index 0a043d43..a39c28bf 100755 --- a/sh/net.sh +++ b/sh/net.sh @@ -573,6 +573,8 @@ ${routes}" hidefirstroute=true fi fi + + local OIFS="${IFS}" SIFS=${IFS-y} local IFS="$__IFS" for cmd in ${routes}; do unset IFS @@ -599,7 +601,11 @@ ${routes}" eend $? eoutdent done - unset IFS + if [ "${SIFS}" = "y" ]; then + unset IFS + else + IFS="${OIFS}" + fi for module in ${MODULES}; do if type "${module}_post_start" >/dev/null 2>&1; then -- cgit v1.2.3