Preserve IFS correctly
This commit is contained in:
parent
bb2b8f383f
commit
ba3248e6d2
@ -573,6 +573,8 @@ ${routes}"
|
|||||||
hidefirstroute=true
|
hidefirstroute=true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local OIFS="${IFS}" SIFS=${IFS-y}
|
||||||
local IFS="$__IFS"
|
local IFS="$__IFS"
|
||||||
for cmd in ${routes}; do
|
for cmd in ${routes}; do
|
||||||
unset IFS
|
unset IFS
|
||||||
@ -599,7 +601,11 @@ ${routes}"
|
|||||||
eend $?
|
eend $?
|
||||||
eoutdent
|
eoutdent
|
||||||
done
|
done
|
||||||
|
if [ "${SIFS}" = "y" ]; then
|
||||||
unset IFS
|
unset IFS
|
||||||
|
else
|
||||||
|
IFS="${OIFS}"
|
||||||
|
fi
|
||||||
|
|
||||||
for module in ${MODULES}; do
|
for module in ${MODULES}; do
|
||||||
if type "${module}_post_start" >/dev/null 2>&1; then
|
if type "${module}_post_start" >/dev/null 2>&1; then
|
||||||
|
Loading…
Reference in New Issue
Block a user