www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000154

When Created: 05/17/1997 14:58:19
Against DJGPP version: 2.01
By whom: bukinm@inp.nsk.su
Abstract: windows 95: wildcard expands to long file names
Having LFN=n in DJGPP.ENV is not enough.
c:\windows> grep hard_to_find *
produces something like:
grep: Black Thatch.bmp: No such file or directory (ENOENT)
...

Obviously, * is expanded into long file names.

Workaround added: 05/17/1997 15:00:51
By whom: bukinm@inp.nsk.su
Set LFN=n in environment (say, in AUTOEXEC.BAT).

This way, startup (crt1) will see LFN=n before
it starts to expand wildcards.

Solution added: 05/17/1997 15:22:26
By whom: bukinm@inp.nsk.su
Rewrite __crt1_startup ().

Old code:
1. Make our environment from dos environment.
2. Update LFN.
3. Read arguments.
   Possibly, assuming LFN=y for response files, etc.
4. Read environment file (DJGPP.ENV).
   Possibly, using __crt0_argv[0], obtained in 3rd step.
5. Update LFN.
6. ..., call `main'.

New code:
1. Make our environment from dos environment.
2. Find program name (from stub or PSP).
3. Read environment file (using program name from 2nd step).
4. Update LFN.
5. Read the rest of arguments.
6. ..., call `main'.

Fixed in version on 04/12/1999 11:00:10
By whom: eliz@is.elta.co.il



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010