From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6283 invoked by alias); 25 Mar 2010 16:05:52 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27829 Received: (qmail 8134 invoked from network); 25 Mar 2010 16:05:48 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Thu, 25 Mar 2010 15:16:17 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Infinite loop in parsing <()? Message-ID: <20100325151617.6775a154@news01> In-Reply-To: <100325072154.ZM26462@torch.brasslantern.com> References: <87ljdhzijx.fsf@gmail.com> <100324173337.ZM25554@torch.brasslantern.com> <87d3yszm3n.fsf@gmail.com> <20100325130601.1ad26f05@news01> <100325072154.ZM26462@torch.brasslantern.com> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Mar 2010 15:16:17.0419 (UTC) FILETIME=[1DCFA5B0:01CACC2E] X-Scanned-By: MailControl A_09_30_00 (www.mailcontrol.com) on 10.68.0.127 On Thu, 25 Mar 2010 07:21:54 -0700 Bart Schaefer wrote: > On Mar 25, 1:06pm, Peter Stephenson wrote: > } > } + print -u $ZTST_fd 'This test hangs the shell when it fails...' > } + alias sort='LC_ALL=C sort' > } + cat <(echo foo | sort) > } +0:Alias expansion works at the end of parsed strings > } +>foo > > Probably not really anything to worry about, but this test will > fail without hanging if there is no "sort" command in the path. I noticed there were no other uses of sort (actually for reasons hinted at by the LC_ALL=C there, although I seem to remember that wasn't good enough---it was getting really hairy to get consistent results across systems) and was wondering about changing it to another cat, which I've now done; the test still hangs in old shells. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom