From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28777 invoked by alias); 28 Apr 2011 11:39:38 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15989 Received: (qmail 26576 invoked from network); 28 Apr 2011 11:39:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Thu, 28 Apr 2011 13:32:27 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: strange behavior Message-ID: <20110428113227.GA15654@prunille.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: <20101115163234.GE19451@prunille.vinc17.org> <101115092438.ZM29576@torch.brasslantern.com> <20101116031023.GF19451@prunille.vinc17.org> <20110128144412.GA22306@ypig.lip.ens-lyon.fr> <110128074915.ZM5855@torch.brasslantern.com> <20110130003731.GL15921@prunille.vinc17.org> <110130142540.ZM15672@torch.brasslantern.com> <20110411142618.GA19503@ypig.lip.ens-lyon.fr> <20110411143930.GA27818@prunille.vinc17.org> <20110411161527.1ce7988c@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110411161527.1ce7988c@pwslap01u.europe.root.pri> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6171-vl-r42848 (2011-03-30) On 2011-04-11 16:15:27 +0100, Peter Stephenson wrote: > On Mon, 11 Apr 2011 16:39:30 +0200 > Vincent Lefevre 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)