home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / utils / bug / 2322 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.3 KB  |  34 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!lab.ultra.nyu.edu!freudent
  3. From: freudent@lab.ultra.nyu.edu (Eric Freudenthal)
  4. Subject: filename '%' bug in gld from binutils release 2.0 (with fix)
  5. Message-ID: <9301042107.AA06211@lab.ultra.nyu.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 4 Jan 1993 11:07:54 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 21
  12.  
  13. (observed on an rs/6000 running aix:) Gcc uses mktemp() to generate
  14. "random" names for temporary files; these names may contain '%'.
  15. These filenames are passed to gld as arguments.  Unfortunately, gld
  16. does not recognise '%' as a valid filename character:
  17.  
  18. from ldlex.l:
  19. CMDFILENAMECHAR   [_a-zA-Z0-9\/\.\\_\+\$\:\[\]\\\,\=\&\!\<\>\-\~]
  20. CMDFILENAMECHAR1  [_a-zA-Z0-9\/\.\\_\+\$\:\[\]\\\,\=\&\!\<\>\~]
  21.  
  22. I added % to these productions as follows:
  23. CMDFILENAMECHAR   [_a-zA-Z0-9\/\.\\_\+\$\:\[\]\\\,\=\&\!\<\>\%\~\-]
  24. CMDFILENAMECHAR1  [_a-zA-Z0-9\/\.\\_\+\$\:\[\]\\\,\=\&\!\<\>\%\~]
  25.  
  26. I did not add % to productions for FILENAMECHAR or FILENAMECHAR1
  27. because I was concerned that it might make the parser unable to
  28. recognize some arithmetic expressions.  However, this leaves the
  29. program with strange semantics: some filenames can be referenced from
  30. the command line but not the script language!
  31.  
  32. Eric
  33.  
  34.