Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Is "read -AE" buggy?
- X-seq: zsh-workers 29720
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Is "read -AE" buggy?
- Date: Tue, 23 Aug 2011 00:18:27 -0700
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author