home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / utils / bug / 2455 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.1 KB

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!shadow.TWinsun.COM!junio
  2. From: junio@shadow.TWinsun.COM (Jun Hamano)
  3. Newsgroups: gnu.utils.bug
  4. Subject: autoheader (autoconf 1.3)
  5. Date: 25 Jan 1993 20:35:32 -0500
  6. Organization: GNUs Not Usenet
  7. Lines: 23
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gnu-utils@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301241050.AA29740@shadow.twinsun.com>
  12.  
  13. On SunOS 4.1.2, autoheader fails to parse m4 output because of
  14. broken sed.  The attached script illustrates this bug.  I'm not
  15. sure whether it is a good idea to work around this bug in
  16. autoheader, or detect the broken sed and tell the user to use GNU
  17. sed.
  18.  
  19. -- >8 ---- >8 ---- >8 ---- >8 ---- >8 ---- >8 ---- >8 --
  20.  
  21. #!/bin/sh
  22. # Show sed bug
  23.  
  24. sed -n '/^@/,/@$/p' <<\EOF
  25. 1 This should be ignored.
  26. @2 This is to be output.@
  27. 3 This should be ignored.
  28. @4 This is to be output.@
  29. @5 This is to be output.@
  30. 6 This should be ignored.
  31. 7 This should be ignored.
  32. @8 This is to be output.
  33. 9 So is this.@
  34. EOF
  35.  
  36.