Mail Archives: djgpp-workers/2001/06/30/13:02:46
> I did find one problem with your solution.
> Let's say someone has PATH set to "a;b;c;d". I'll admit this non-existant
> person is a dufus, but it is legal. Then set "PATH_SEPARATOR=:". PATH is now
> "a:b:c:d". Then set "PATH_SEPARATOR=;". PATH is now "a:b;c:d".
Yup, I have considered it too. But if somebody ever has such a path, he
deserves to lose anyway...
> But it turns out my solution isn't quite right either. The real problem seem
> to be that make_dos_path_var is being used for two different purposes. As-is,
Yes, I noticed something like that.
> I'm uploading a new source release to fix this case. It incorporates the fix
> above and takes advantage of a flaw in the current dosexec.c to allow a file
> without an extension to take precedence over a file with the same name but
> with an extension. But also made files with an .exe extension take precedence
> over extension-less unstubbed coff files. Enjoy.
Thanks, now I have almost all-dancing, all-singing bash, if we don't
consider Perl's configure ;)
1) It still tries .com before extensionless - so at first it tries
configure.com VMS.
2) When move out of way configure.com, it crashes later on:
Exiting due to signal SIGSEGV
Page fault at eip=0006d00a, error=0004
eax=65782f2e ebx=000ba59c ecx=000ba58c edx=65782f32 esi=000ba5a0 edi=00000000
ebp=fe9d6b8c esp=fe9d6b74 program=C:\DJGPP\BIN\SH.EXE
cs: sel=00ef base=8574f000 limit=fe9d6fff
ds: sel=00ff base=8574f000 limit=fe9d6fff
es: sel=00ff base=8574f000 limit=fe9d6fff
fs: sel=010f base=00000000 limit=0010ffff
gs: sel=010f base=00000000 limit=0010ffff
ss: sel=00ff base=8574f000 limit=fe9d6fff
App stack: [fe9d7000..fe957000] Exceptn stack: [0009947c..0009753c]
Call frame traceback EIPs:
0x0006cd66 _malloc+218
0x00035970 _xmalloc+20, line 85 of xmalloc.c
0x0001a5ee _substring+30, line 199 of subst.c
0x00021c46 _param_expand+1610, line 5289 of subst.c
0x0002210b _expand_word_internal+903, line 5516 of subst.c
0x00022594 _expand_word_internal+2064, line 5615 of subst.c
0x0001ccf4 _call_expand_word_internal+36, line 2127 of subst.c
0x0001e33a _expand_word_unsplit+38, line 2994 of subst.c
0x00010beb _execute_case_command+91, line 2100 of execute_cmd.c
0x0000ef46 _execute_command_internal+1562, line 708 of execute_cmd.c
0x0000e69f _execute_command+79, line 288 of execute_cmd.c
Laurynas
- Raw text -