home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / modula3 / 1156 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.lang.modula3
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!rsg1.er.usgs.gov!fmsrl7!lynx.unm.edu!zia.aoc.nrao.edu!laphroaig!cflatter
  3. From: cflatter@nrao.edu (Chris Flatters)
  4. Subject: m3make relies on obsolete shell feature
  5. Message-ID: <1993Jan26.001352.20350@zia.aoc.nrao.edu>
  6. Sender: news@zia.aoc.nrao.edu
  7. Reply-To: cflatter@nrao.edu
  8. Organization: NRAO
  9. Date: Tue, 26 Jan 93 00:13:52 GMT
  10. Lines: 30
  11.  
  12. Make files (.makefile) constructed by m3make from the SRC Modula 3 distribution
  13. contain rules like the following.
  14.  
  15. c.o:
  16.     IFS=' $(SEP)'; $(PASS1) -c $(BOOTOPT) $<
  17. s.o:
  18.     IFS=' $(SEP)'; $(PASS1) -c $(BOOTOPT) $<
  19.  
  20.  
  21. These cause commands similar to the following to be passed to the shell
  22.  
  23. IFS=' @'; @cc@ -c .... $<
  24.  
  25. This will not work unless IFS is used for splitting all fields.  This
  26. is traditionally the case for the Bourne shell but is not the case for
  27. the POSIX.2 shell:  the POSIX.2 shell only performs splitting on fields
  28. that result from tilde expansion, parameter expansion, command
  29. substitution and arithmetic expansion (section 3.6).  The splitting of
  30. other fields causes a number of problems (including some security
  31. holes) and has been removed from some Bourne shells (eg. 386BSD --- and
  32. probably other NET-2 derivatives) that do not fully conform to
  33. POSIX.2.  m3make will not, therefore, work in its current form on
  34. systems that comply with POSIX.2 or have a corrected Bourne shell.
  35.  
  36. Which part of the system relies on the use of a non-whitespace separator
  37. in the definitions of the compiler passes?  Can the seperators be elided
  38. when creating the .makefile(s) without causing any side effects?
  39.  
  40.     Chris Flatters
  41.     cflatter@nrao.edu
  42.