zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Is "read -AE" buggy?
Date: Tue, 23 Aug 2011 00:18:27 -0700	[thread overview]
Message-ID: <110823001827.ZM19096@torch.brasslantern.com> (raw)

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).


             reply	other threads:[~2011-08-23  7:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23  7:18 Bart Schaefer [this message]
2011-08-28 16:50 ` Peter Stephenson
2011-08-29 15:26   ` Bart Schaefer
2011-08-29 17:06     ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=110823001827.ZM19096@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).