From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25014 invoked from network); 4 Sep 2008 22:24:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Sep 2008 22:24:05 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 87532 invoked from network); 4 Sep 2008 22:23:59 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Sep 2008 22:23:59 -0000 Received: (qmail 24776 invoked by alias); 4 Sep 2008 22:23:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25610 Received: (qmail 24751 invoked from network); 4 Sep 2008 22:23:50 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 4 Sep 2008 22:23:50 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id E28AC80271A5 for ; Fri, 5 Sep 2008 00:23:44 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id D650010409A; Thu, 4 Sep 2008 21:05:49 +0000 (UTC) Date: Thu, 4 Sep 2008 21:05:49 +0000 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: dead code in hdynread2 Message-ID: <20080904210549.GA31294@scru.org> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.92.1/8162/Thu Sep 4 18:38:45 2008 on bifrost X-Virus-Status: Clean c can apparently never be '\n' there. Index: Src/hist.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/hist.c,v retrieving revision 1.81 diff -u -r1.81 hist.c --- Src/hist.c 31 Jul 2008 08:44:21 -0000 1.81 +++ Src/hist.c 4 Sep 2008 21:03:43 -0000 @@ -1935,10 +1935,6 @@ ptr = buf; while ((c = ingetc()) != stop && c != '\n' && !lexstop) { - if (c == '\n') { - inungetc(c); - break; - } if (c == '\\') c = ingetc(); *ptr++ = c;