bug-bash
[Top][All Lists]
Advanced

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

Re: Misleading NEWS for assignment before function


From: Chet Ramey
Subject: Re: Misleading NEWS for assignment before function
Date: Mon, 13 Jan 2025 09:39:29 -0500
User-agent: Mozilla Thunderbird

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    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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