Re: unset does not remove functions like a[b] unless -f is specified

2023-02-15 Thread Koichi Murase
2023年2月7日(火) 0:59 Koichi Murase : > By the way, I got a reply from the chair, Andrew, yesterday and could > get my account in the Austing Group Issue Tracker. I'll later submit > an issue about the implementation extension of function names with > slashes. Sorry for the delay about an issue in

Re: Bash 5.2 breaks our Arch Linux devtools

2023-02-15 Thread Koichi Murase
2023年2月16日(木) 0:03 Tobias Powalowski via Bug reports for the GNU Bourne Again SHell : > Description: > latest 5.2.x seems to have introduced a change in shopt extglob: > https://gitlab.archlinux.org/archlinux/devtools/-/merge_requests/133 > I'm not sure if my proposed fix for this is correct or if

Re: Bash 5.2 breaks our Arch Linux devtools

2023-02-15 Thread Martin D Kealey
On Wed, 15 Feb 2023 at 23:29, Tobias Powalowski via Bug reports for the GNU Bourne Again SHell wrote: > Hi, > latest 5.2.x seems to have introduced a change in shopt extglob: > https://gitlab.archlinux.org/archlinux/devtools/-/merge_requests/133 > I'm not sure if my proposed fix for this is

Re: [PATCH] aclocal.m4: fix -Wimplicit-function-declaration in dup2 check

2023-02-15 Thread Sam James
> On 2 Feb 2023, at 05:46, Sam James wrote: > > dup2 requires a include. Fixes the following when diffing > config.log > when testing with a stricter compiler: > ``` > -warning: call to undeclared function 'dup2'; ISO C99 and later do not > support implicit function declarations

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: [PATCH] Add missing parenthesis to tputs declaration in readline's tcap.h

2023-02-15 Thread Chet Ramey
On 2/15/23 2:35 PM, Eduardo A. Bustamante López wrote: Signed-off-by: Eduardo A. Bustamante López Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.edu

[PATCH] Add missing parenthesis to tputs declaration in readline's tcap.h

2023-02-15 Thread Eduardo A . Bustamante López
Signed-off-by: Eduardo A. Bustamante López --- lib/readline/tcap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/readline/tcap.h b/lib/readline/tcap.h index 1121061b..a9c6322a 100644 --- a/lib/readline/tcap.h +++ b/lib/readline/tcap.h @@ -51,7 +51,7 @@ extern int

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: Bash 5.2 breaks our Arch Linux devtools

2023-02-15 Thread Greg Wooledge
On Wed, Feb 15, 2023 at 05:35:10PM +0100, Mike Jonkmans wrote: > I once had that same issue: > https://lists.gnu.org/archive/html/bug-bash/2015-10/msg00013.html > > Conclusion: the shopt is not yet working until the function has been run. > (or after the line has been parsed). Yes. This is not

Re: Bash 5.2 breaks our Arch Linux devtools

2023-02-15 Thread alex xmb ratchev
On Wed, Feb 15, 2023, 5:36 PM Mike Jonkmans wrote: > On Wed, Feb 15, 2023 at 02:29:29PM +0100, Tobias Powalowski via Bug > reports for the GNU Bourne Again SHell wrote: > > I once had that same issue: > https://lists.gnu.org/archive/html/bug-bash/2015-10/msg00013.html > > Conclusion: the shopt

Re: Bash 5.2 breaks our Arch Linux devtools

2023-02-15 Thread Mike Jonkmans
On Wed, Feb 15, 2023 at 02:29:29PM +0100, Tobias Powalowski via Bug reports for the GNU Bourne Again SHell wrote: I once had that same issue: https://lists.gnu.org/archive/html/bug-bash/2015-10/msg00013.html Conclusion: the shopt is not yet working until the function has been run. (or after the

Re: "builtin jobs" does not output to stdout.

2023-02-15 Thread Chet Ramey
On 2/14/23 7:09 PM, Koichi Murase wrote: I still don't think `builtin jobs' is equivalent to `jobs' because `jobs' can pick up a shell function. You're right; they're not equivalent. `builtin' guarantees you'll execute the builtin instead of any function replacement. I wish POSIX had picked

Bash 5.2 breaks our Arch Linux devtools

2023-02-15 Thread Tobias Powalowski via Bug reports for the GNU Bourne Again SHell
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection