Frank Heckenbach wrote:
I guess we can take out one pair of quotes. Shouldn't really be a problem (just paranoia). Apparently that shell doesn't like nested quotes.
if gcc dummy.c > /dev/null 2>&1 && [ -r "$A_OUT" ] && [ x"`./$A_OUT 2> /dev/null`" = x"Ä" ]; then
Thanks for the hint, but it doesn't help:
[G5:gcc/p/test] adriaan% cat test_log Test Run By adriaan on 2005-01-26 04:10:04 Native configuration is powerpc-apple-darwin7 (G5.local) gpc 20041218, based on gcc-3.4.3, flags: -g -O3 -W -Wall -Wno-unused GPC-TEST-BEGIN ========================== TEST fjf165a.pas: ./fjf165a.cmp: line 40: unexpected EOF while looking for matching `"' ./fjf165a.cmp: line 42: syntax error: unexpected end of file
========================== GPC-TEST-END
jan.ruzicka@comcast.net wrote:
Is there any way to have the non ASCII character escaped? I don't think the shell script necessary needs to reproduce non ascii characters correctly. Possibilities are compare result of hexdump or generate the output in a different way and use cmp.
What character should it be anyway? I see it as a capital letter A with umlaut. Saved in a file it is 8000 hex.
The Macintosh has another character set for values > 127. The A-umlaut is auto-converted when you copy and paste it from email, but in the original script it looks like "ƒ" on the Mac. Does Linux/Unix have the same character set as WIndows (or the other way round) ?
Regards,
Adriaan van Os