Mail Archives: djgpp/1998/10/06/15:45:36
On Tue, 6 Oct 1998, Eli Zaretskii wrote:
>
> But if you set SYSROOT=C:, then it *should* work (it does for me with
> the stock bash.exe).
Yes I agree. It works with the stock bash.exe, but not with the one I've
just rebuild.
> Please run Bash under a debugger and see what
> function fails for /dev/null. (A good beginning would be to set a
> breakpoint in a function that reports the error, and then dsiplay the
> stack to see where did the error originate.)
>
Here are some results: because of the value of SYSROOT being "C:",
dosutil_expand_path expands /dev/null to c:/dev/null.
Then a call to 'open' is performed with "c:/dev/null" as first argument.
It is this call which fails.
A little test program easily shows that 'stat' and 'open' effectively fail
with "c:/dev/null" but not with "/dev/null".
As I do not have the patched sources of open and stat, I cannot make
further investigations. Nate, could you please send them to me, or at
least tell me where to find them ?
Olivier.
- Raw text -