On 1/10/25 1:12 PM, Ulrich Müller 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?). -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature