Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: `read -t' tests for available input before reading.
- X-seq: zsh-workers 12078
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: `read -t' tests for available input before reading.
- Date: Mon, 26 Jun 2000 22:29:25 +0100
- In-reply-to: ""Bart Schaefer""'s message of "Mon, 26 Jun 2000 15:33:56 -0000." <1000626153356.ZM25846@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
"Bart Schaefer" wrote:
> On Jun 26, 3:54pm, Peter Stephenson wrote:
> } Subject: PATCH: `read -t' tests for available input before reading.
> }
> } I implemented this because I need it for a set of commands [...]
>
> May I suggest that the read_poll() helper function belongs somewhere
> other than in builtin.c ? Perhaps in utils.c where other tty mucking
> is located? (Not that utils.c itself isn't getting a bit large.)
I've put it it utils.c, where it needs an extra argument since readfd isn't
accessible, but it's otherwise unchanged, so I haven't posted it.
The patch seems to work on Linux, so I hope not too much tinkering will be
necessary. I'm now fighting here with endless
There are insecure directories, continue [ny]? y
messages, as predicted by Bart.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxxxxxxxxxxxxxxxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk
Messages sorted by:
Reverse Date,
Date,
Thread,
Author