Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $pipestatus broken?
Frank Terbeck wrote:
[...]
> Here's my test script:
You can actually dumb this down to:
[snip]
: | while read a; do
:
done
print "${pipestatus[@]}"
[snap]
It (pipestatus just containing a single "1") seems to happen less
frequently with this simpler loop, but still in the range of 5% of the
invocations on my machine.
If I use the simplest pipe I can think of:
[snip]
: | :
print "${pipestatus[@]}"
[snap]
I didn't get a misstep in 10000 test runs.
I'm running the latest zsh snapshot on a 2.6.32 linux box on a intel
core2duo laptop (that's an amd64 architecture), if it matters.
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author