summaryrefslogtreecommitdiff
path: root/rules/CC
diff options
context:
space:
mode:
Diffstat (limited to 'rules/CC')
-rwxr-xr-xrules/CC/foreign/expand_exec12
1 files changed, 6 insertions, 6 deletions
diff --git a/rules/CC/foreign/expand_exec b/rules/CC/foreign/expand_exec
index 32891ca..df3000e 100755
--- a/rules/CC/foreign/expand_exec
+++ b/rules/CC/foreign/expand_exec
@@ -46,9 +46,9 @@ parse_arg() {
local PARSE_VAR_NAME=false
while [ ${#ARG} -gt 0 ]; do
- local NEXT=${ARG#?}
- c="${ARG%$NEXT}"
- ARG=$NEXT
+ local NEXT="${ARG#?}"
+ c="${ARG%"${NEXT}"}"
+ ARG="${NEXT}"
if $PARSE_VAR_NAME; then
# parse <var> from $(<var>)
@@ -91,9 +91,9 @@ parse_arg() {
PARSED_ARG="'"
while [ ${#RESULT} -gt 0 ]; do
- local NEXT=${RESULT#?}
- c="${RESULT%$NEXT}"
- RESULT=$NEXT
+ local NEXT="${RESULT#?}"
+ c="${RESULT%"${NEXT}"}"
+ RESULT="${NEXT}"
if [ "$c" = "'" ]; then
PARSED_ARG="${PARSED_ARG}'\\''"
else