www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/08/03:15:47

Date: Tue, 8 Jul 1997 10:15:12 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jude DaShiell <jdashiel AT eagle1 DOT eaglenet DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: interesting redir behavior
In-Reply-To: <Pine.NXT.3.95.970708021248.29246A-100000@eagle1>
Message-ID: <Pine.SUN.3.91.970708100821.13048P-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019