bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Misleading NEWS for assignment before function


From: Ulrich Müller
Subject: Misleading NEWS for assignment before function
Date: Fri, 10 Jan 2025 19:12:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]