Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!calvin.tamu.edu From: cnh5730@calvin.tamu.edu (Chuck Herrick) Newsgroups: comp.sys.next Subject: strange behavior of the C preprocessor Message-ID: <9060@helios.TAMU.EDU> Date: 13 Oct 90 04:45:36 GMT Sender: usenet@helios.TAMU.EDU Organization: geodynamics research institute, texas a+m univ Lines: 27 Originator: cnh5730@calvin.tamu.edu Does this appear to be a bug in the C preprocessor to you? With setenv cpp /lib/cpp I ran the following script (extracted from Larry Walls' Configure in patch2) cat <<'EOT' >testcpp.c #define ABC abc #define XYZ xyz ABC.XYZ EOT echo 'Maybe "'$cpp'" will work...' $cpp testcpp.out 2>&1 inspection of testcpp.out revealed that the file contained abc .xyz and NOT abc.xyz Since Larry's script checks to see if 'abc.xyz' IS contained, it promptly bombs out. By the way, /lib/cpp is a link to /lib/cpp-16 -- Chuck Herrick cnh5730@calvin.tamu.edu