mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 01:24:51 +02:00
Fix inadequate quoting in MSED variable
Fixes: sed: 1: "s/\/\\/ ": unescaped newline inside substitute pattern
This commit is contained in:
committed by
Tim Edwards
parent
4c4b0e301b
commit
874209b884
Vendored
+2
-2
@@ -5374,10 +5374,10 @@ if test "x${PYTHON3}" == "xno"; then
|
||||
usingPython3=
|
||||
if test "$CPP" = "$CC -E" ; then
|
||||
MCPP="$CPP -x c"
|
||||
MSED="sed -e 's/\\/\\\\/'"
|
||||
MSED="sed -e 's/\\\\/\\\\\\\\/'"
|
||||
else
|
||||
MCPP="$CPP"
|
||||
MSED="sed -e 's/\\/\\\\/'"
|
||||
MSED="sed -e 's/\\\\/\\\\\\\\/'"
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
@@ -299,10 +299,10 @@ if test "x${PYTHON3}" == "xno"; then
|
||||
usingPython3=
|
||||
if test "$CPP" = "$CC -E" ; then
|
||||
MCPP="$CPP -x c"
|
||||
MSED="sed -e 's/\\/\\\\/'"
|
||||
MSED="sed -e 's/\\\\/\\\\\\\\/'"
|
||||
else
|
||||
MCPP="$CPP"
|
||||
MSED="sed -e 's/\\/\\\\/'"
|
||||
MSED="sed -e 's/\\\\/\\\\\\\\/'"
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user