Mail Archives: djgpp/1998/03/30/04:07:52
> Date: Sun, 29 Mar 1998 14:20:16 +0300 (IDT)
> From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
> Subject: Re: "bash"ing "cat"s.
>
> On Fri, 27 Mar 1998, Mahadevan R. wrote:
>
> > This is with reference to the recent thread about "cat -", wherein,
> > I gather, it was concluded that this was a problem specific to "cat".
>
> No, the conclusion was that this is some bug in Bash which is
> triggered by `cat'. Once triggered, any program which reads from
> stdin will get EOF immediately, as your examples show.
>
Did some more testing also under DOSEMU for Linux and also under
MS-DOS 6.22. The problem with EOF in stdin does not appear if the
program reading stdin is invoked directly from COMMAND.COM
but appears if it is invoked from BASH, Norton Commander and from
FAR 1.50 (Win95 only). Tried also to track system calls from
COMMAND.COM but didn't find anything interesting
Andris
- Raw text -