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