Re: Defining variable as local -r defines variable outside the function in some cases

2023-02-15 Thread Robert Elz
Date:Wed, 15 Feb 2023 11:57:45 -0500 From:Chet Ramey Message-ID: <8295e33a-da67-676c-66cb-9593871ce...@case.edu> | However, it might be time to change this again, since the ultimate | resolution of issue 654 resulted in POSIX removing the special handling of |

Re: Defining variable as local -r defines variable outside the function in some cases

2023-02-15 Thread Chet Ramey
On 2/13/23 10:33 AM, Voldemar Lazarev via Bug reports for the GNU Bourne Again SHell wrote: Bash Version: 5.2 Patch Level: 15 Release Status: release Description: When a function has a variable (e.g. "X") defined as local and read-only ("local -r") and the function is called with

Re: Defining variable as local -r defines variable outside the function in some cases

2023-02-13 Thread Koichi Murase
2023年2月14日(火) 0:39 Voldemar Lazarev via Bug reports for the GNU Bourne Again SHell : > Description: > When a function has a variable (e.g. "X") defined as local and read-only > ("local -r") and the function is called with variable of same name ("X") > specified before function name (see the

Defining variable as local -r defines variable outside the function in some cases

2023-02-13 Thread Voldemar Lazarev via Bug reports for the GNU Bourne Again SHell
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: darwin22.1.0 Compiler: clang Compilation CFLAGS: -DSSH_SOURCE_BASHRC uname output: Darwin hostname_is_not_disclosed.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022;