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

Re: $pipestatus broken?



On Dec 24, 10:23am, Bart Schaefer wrote:
}
}         if ((jn->stat & STAT_CURSH) && i < MAX_PIPESTATS)
}             pipestats[i++] = lastval;
} 
} In this case I'm *guessing* lastval = 1 because we're catching the
} signal after thisjob = pj but before the actual wait for jobtab[1],
} so lastval reflects that "read a" has failed.

I can confirm by replacing "read a" with "(return 3)" in the test that
we are in fact picking up lastval from the condition rather than from
the loop exit, but in the absence of my patch the above snippet is not
the place where this happens.

That's all the time I have for this until after the 25th, I'm afraid.
Happy year-end-holdiday-stuff to you all.



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