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

Re: subtle `echo' bug



On Tuesday 14 June 2005 21:27, Alexey Tourbin wrote:
> Hello,
>
> I believe this is a bug:
>
> $ seq 1 3 |while read n; do { echo |echo } |/bin/echo $n; done
> 1
> 2
> 3
> $ seq 1 3 |while read n; do { echo |echo } |echo $n; done
> 1
> $
>
> (I've got recent 4.3 snapshot, built without unicode support.)
>

This happens randomly:

{pts/3}% seq 1 3 |while read n; do { echo |echo } |echo $n; done
1
2
3
{pts/3}% seq 1 3 |while read n; do { echo |echo } |echo $n; done
1
{pts/3}% seq 1 3 |while read n; do { echo |echo } |echo $n; done
1
{pts/3}% seq 1 3 |while read n; do { echo |echo } |echo $n; done
1
2
3
{pts/3}% echo $ZSH_VERSION
4.2.5

-andrey

Attachment: pgpcMaYihd5Cv.pgp
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author