From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29336 invoked by alias); 23 Aug 2011 07:18:48 -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: 29720 Received: (qmail 26281 invoked from network); 23 Aug 2011 07:18:46 -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,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110823001827.ZM19096@torch.brasslantern.com> Date: Tue, 23 Aug 2011 00:18:27 -0700 X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Is "read -AE" buggy? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Via fooling around with the "wc and leading spaces" thread on -users: schaefer<535> wc config.modules | read -AE foo 64 461 4569 config.modules 64 461 4569 config.modules Why did it print everything twice? Doesn't happen without -A: schaefer<529> wc config.modules | read -E 64 461 4569 config.modules Doesn't happen with -e: schaefer<540> wc config.modules | read -Ae 64 461 4569 config.modules "cvs annotate" pegs this for rev 1.82 (workers/17582) but I suspect that is an unrelated syntactic change and really it's been this way since before the CVS repository was first set up in April 1999. Indeed, I can reproduce this in zsh 2.4 (no, that's not a typo for 4.2).