From: Eli Zaretskii Date: Sat, 27 Nov 2004 18:22:45 +0000 (+0000) Subject: Protect & with "" since & is special for cmd.exe; X-Git-Tag: ttn-vms-21-2-B4~3602 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8237370691e426352390c70fc3f66501ac95ccf;p=emacs.git Protect & with "" since & is special for cmd.exe; filter through Sed to remove the quotes. ---------------------------------------------------------------------- --- diff --git a/config.bat b/config.bat index 5417513ea7c..9617dfb4af7 100644 --- a/config.bat +++ b/config.bat @@ -161,8 +161,9 @@ sed -f ../msdos/sed2v2.inp config.h2 Rem See if DECL_ALIGN can be supported with this GCC rm -f junk.c junk.o junk junk.exe echo struct { int i; char *p; } __attribute__((__aligned__(8))) foo; >junk.c -rem Two percent signs because it is a special character for COMMAND.COM -echo int main(void) { return (unsigned long)&foo %% 8; } >>junk.c +rem Two percent signs because it is a special character for COMMAND.COM/CMD +rem Filter thru Sed because "&" is special for CMD.EXE +echo int main(void) { return (unsigned long)"&"foo %% 8; } | sed "s/.&./\&/" >>junk.c gcc -o junk junk.c if not exist junk.exe coff2exe junk junk