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.