Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Is "read -AE" buggy?



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