Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: `read -t' tests for available input before reading.



"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