>>>>> On Mon, 13 Jan 2025, Chet Ramey wrote: >> NEWS, bash-5.1, item 1.o. says:
>> o. Bash posix mode now treats assignment statements preceding shell >> function definitions the same as in its default mode, since POSIX >> has changed and no longer requires those assignments to persist after >> the function returns (POSIX interp 654). >> This refers to the following POSIX change, I guess: >> https://www.austingroupbugs.net/view.php?id=654 >> IMHO the wording "preceding shell function definitions" is >> misleading, because the assignment precedes the function call, not >> its definition. > Thanks for the report (from 2020?). Well, it is still in NEWS. It isn't my fault that nobody reported it sooner. I stumbled upon this when checking for differences from 5.0 to 5.2, and only understood the meaning after looking up the POSIX item.