summaryrefslogtreecommitdiff
path: root/mcon/U
diff options
context:
space:
mode:
authorrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2015-04-19 10:04:17 +0000
committerrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2015-04-19 10:04:17 +0000
commitf36cfa6b479ea3a55246622b5c0cfc38b9f1addb (patch)
tree2e3866f9458dc17fdaaf8ee13660789429895ade /mcon/U
parenta23380a908b296a3e92ee05f79f3c5247e410fdf (diff)
Patch from H.Merijn Brand to disable backslashes in -D and -U arguments.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@191 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'mcon/U')
-rw-r--r--mcon/U/Options.U13
1 files changed, 12 insertions, 1 deletions
diff --git a/mcon/U/Options.U b/mcon/U/Options.U
index 6bc2fdb..f58f4c7 100644
--- a/mcon/U/Options.U
+++ b/mcon/U/Options.U
@@ -354,8 +354,19 @@ case "$silent" in
true) exec 1>/dev/null;;
esac
-: run the defines and the undefines, if any, but leave the file out there...
+?X: Patch from H.Merijn Brand -- 2015-04-19
+?X: The reasoning behind this change is that optdef.sh gets sourced and the
+?X: arguments, like prefix, are passed around in different quotation styles
+?X: and subshells all around, and the (unescaped) backslash will not be
+?X: pertained in the final config.sh
+?X: Note that -q is POSIX but to be sure, we also silence all output --RAM
touch optdef.sh
+if grep -q '\\' optdef.sh >/dev/null 2>&1; then
+ echo "Configure does not support \\ in -D or -U arguments" >&2
+ exit 1
+fi
+
+: run the defines and the undefines, if any, but leave the file out there...
. ./optdef.sh
: create the posthint manipulation script and leave the file out there...
?X: this file will be perused by Oldconfig.U