Mail Archives: djgpp/2010/04/14/14:45:25
"Rugxulo" <rugxulo AT gmail DOT com> wrote in message
news:57a05b96-b688-4c09-93b5-f2bd3d2501a1 AT r18g2000yqd DOT googlegroups DOT com...
> On Apr 8, 9:08 am, Eli Zaretskii <e DOT DOT DOT AT gnu DOT org> wrote:
> >
> > No. With DJGPP v1.x, it was possible because the extender was running
> > the DJGPP program, so it was possible to use the DOS file handle
> > inheritance to provide this feature. In v2.x, the "extender" is just
> > a DPMI server, and the program runs independently of it. Therefore,
> > file handles are not (and can not) be inherited.
>
> I think it was Rod P. a year or so ago that mentioned the following
> tiny TSR in one of his posts. So thanks, Rod! ;-)
>
> http://johnsantic.com/comp/tsr.html
>
Yeah, looks like I did post that link, but over on comp.os.msdos.programmer.
I've noticed that both John's TSR and DJGPP's redir.exe don't interleave
stderr and stdout messages the way they are emitted to the screen. Both
seem to write out stderr messages to the file first followed by stdout. I
combined Santic's redirection with another TSR of mine that converts LF and
CRLF to CRLF. That way both DOS an Unix line endings work correctly. Those
two things, wrong line-endings and stderr different from stdout, are two of
the annoying things I've come across with DJGPP.
Rod Pemberton
I'm also posting a NASM version of his code in another post.
- Raw text -