Mail Archives: djgpp/1997/07/08/03:15:47
On Tue, 8 Jul 1997, Jude DaShiell wrote:
> I have access to caldera corporation's opendos 7.01 and
> msdos 6.22. I've tried redir.exe under both operating systems.
> Interestingly enough, under msdos 6.22 the program works as documented.
> However under opendos redir.exe when given an identical
> command opens output files but leaves them at 0k length and writes
> no output in them. The command string I used was:
> redir -o tests.log -eo makeall <cr>.
IMHO, this should be reported to Caldera. It seems that it doesn't
behave like DOS when allocating file handles. `redir' relies on the fact
that when you close handle x, the next open reuses that handle. If this
is false in OpenDOS, the redirected file will remain empty.
It would be interesting to see whether this is indeed the problem. Can
you compile `redir' (in src/utils/redir.c from djlsr201.zip) with -g,
step into it with a debugger and see what does `open' after `close'
return?
- Raw text -