Date: Tue, 8 Jul 1997 10:15:12 +0300 (IDT) From: Eli Zaretskii To: Jude DaShiell cc: djgpp AT delorie DOT com Subject: Re: interesting redir behavior In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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 . 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?