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

Re: strange behavior



On 2011-04-11 16:15:27 +0100, Peter Stephenson wrote:
> On Mon, 11 Apr 2011 16:39:30 +0200
> Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> > and this is because the SIGWINCH seems to interrupt the "read"
> > (is it a bug?), so that
> > 
> >     while read -r $timeout -k -u 0 ch
> >     do
> >       line="$line$ch"
> >       [[ $ch = $'\012' ]] && break
> >       timeout=(-t 0.1)
> >     done
> > 
> > gives an empty string; hence the observed behavior.
> 
> Yes, we handle EINTR in most places and should do so here.  There are
> lots of nasty special cases in bin_read(); I think this is this one.
[...]

Thanks, I confirm that the problem has been fixed with the latest
zsh-beta upgrade under Debian.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author