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

Re: Bug/regression: tt(RANDOM) seed not updating when $RANDOM is used in a pipe




On 2023-06-28 22:42, Bart Schaefer wrote:
The LHS of the pipe should be a subshell, so the behavior is intentional.
This was, however, an unanticipated side-effect of the referenced
commit.

So it feels like a bug but is theoretically correct even tho it was 'fixed' by accident?  I'd speculate that nine out of ten people would prefer the 'bug' since it's the intuitive behavior. If one wanted to preserve a value, would one not do that explicitly?  Just my two cents.







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