Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: forwarded bug report
- X-seq: zsh-workers 6467
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: forwarded bug report
- Date: 04 Jun 1999 22:15:34 +0900
- In-reply-to: Peter Stephenson's message of "Fri, 04 Jun 1999 11:40:04 +0200"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <9906040940.AA31818@xxxxxxxxxxxxxxxxx>
In article <9906040940.AA31818@xxxxxxxxxxxxxxxxx>,
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> writes:
> I suppose closing it is better than redirecting it from /dev/null, since
> then you get an error message which will warn the user that something
> happened which shouldn't have --- although a bit cryptic: cat gives me
> cat: cannot stat
> Are there cases where this is bad?
I think also that closing stdin is right behavior to show that reading
from stdin is an error in completion. But it is bit more riskey than
redirecting stdin from /dev/null.
At least, on SunOS 4.1.4, following command produces strange result.
(some-file is opend as file descriptor 0 and comm confuses.)
comm some-file - <&-
However, intentional read from stdin like above may not appear in
copmletion.
--
Tanaka Akira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author