Re: Bash-5.2 official patch 9

2022-11-14 Thread Sam James
> On 14 Nov 2022, at 20:03, Chet Ramey wrote: > > On 11/12/22 4:39 AM, Kerin Millar wrote: >> On Tue, 8 Nov 2022 09:50:51 -0500 >> Chet Ramey wrote: >>> BASH PATCH REPORT >>> = >>> >>> Bash-Release: 5.2 >>> Patch-ID: bash52-009 >> Are there any plans to backport the

Re: cannot validate read -e entry when bound to TAB

2022-11-14 Thread Koichi Murase
2022年11月15日(火) 1:47 Koichi Murase : > I'm just planning to quickly check the behavior of "the next devel > push", which seems to be not yet pushed to savannah. Thank you. I checked the latest devel push, where I confirmed that it now works. Thank you.

Re: bash-5.2.9 lib/readline/input.c fix for Tru64

2022-11-14 Thread Koichi Murase
2022年11月15日(火) 9:04 Henry Bent : > In bash-5.2.9 if HAVE_SELECT is set but HAVE_PSELECT is not, we still need > the "fd_set readfds;" at line 808 in lib/readline/input.c. Found on Tru64 > 5.1. This seems to be reported repeatedly for different lines in the source code.

Re: [PATCH] Fix foreground dead jobs in trap handlers reported like background ones in `jobs'

2022-11-14 Thread Koichi Murase
2022年10月10日(月) 22:47 Chet Ramey : > > 2022年10月4日(火) 0:56 Chet Ramey : > >>> I expect the same behavior of `f1' and `f2' as far as there are no > >>> background jobs. > >> > >> Why? f2 calls `jobs', and so requests information in a particular format, > >> which may or may not be the same format as

Re: [PATCH] glob: add shopt globmtimesort to sort globs by mtime

2022-11-14 Thread Chet Ramey
On 10/3/22 2:56 PM, Evan Gates wrote: --- There is currently no good way to sort files by mtime in the shell. It's possible to do so with an ls that supports -t, but parsing ls is problematic. Thanks for the patch. There are some good things here, usable stuff, but I think I'll look at a

Re: cannot validate read -e entry when bound to TAB

2022-11-14 Thread Koichi Murase
2022年11月11日(金) 8:48 Koichi Murase : > 2022年11月11日(金) 7:58 of1 : > > [...] > > read -set .001 -d '' DISCARD > > before the actual read -e > > Alas, this does not work anymore with 5.2 (-e and -t > > combination triggers shell exit or, when used in a script, prevents > >

Re: Interest in Converting Macros to Inline Functions

2022-11-14 Thread Koichi Murase
2022年11月15日(火) 8:46 Brent Pappas : > I noticed that Bash code sometimes uses macros where a static inline function > would appear to work equally as well. > For instance, consider the macro ALL_ELEMENT_SUB defined in array.h: The inline keyword is introduced in C99, but Bash is written in C89,

Re: Should the readline *-meta flags reset when $LANG changes?

2022-11-14 Thread Koichi Murase
w2022年11月15日(火) 5:31 Chet Ramey : > On 11/14/22 11:40 AM, Koichi Murase wrote: > > 2022年11月15日(火) 0:22 Chet Ramey : > >> On 8/11/22 5:56 PM, Koichi Murase wrote: > >>> Can we also change the behavior of TERM in a similar way with option > >>> 4? Currently, a temporal change of TERM clears

Re: Should the readline *-meta flags reset when $LANG changes?

2022-11-14 Thread Chet Ramey
On 11/14/22 11:40 AM, Koichi Murase wrote: 2022年11月15日(火) 0:22 Chet Ramey : On 8/11/22 5:56 PM, Koichi Murase wrote: Can we also change the behavior of TERM in a similar way with option 4? Currently, a temporal change of TERM clears keybindings of some keys (home, end, right, left, etc.) even

Re: Should the readline *-meta flags reset when $LANG changes?

2022-11-14 Thread Chet Ramey
On 8/11/22 5:56 PM, Koichi Murase wrote: Can we also change the behavior of TERM in a similar way with option 4? Currently, a temporal change of TERM clears keybindings of some keys (home, end, right, left, etc.) even when the temporal change does not survive across multiple calls of readline:

Re: Bash-5.2 official patch 9

2022-11-14 Thread Chet Ramey
On 11/12/22 4:39 AM, Kerin Millar wrote: On Tue, 8 Nov 2022 09:50:51 -0500 Chet Ramey wrote: BASH PATCH REPORT = Bash-Release: 5.2 Patch-ID: bash52-009 Are there any plans to backport the "fixes for extended

Re: Should the readline *-meta flags reset when $LANG changes?

2022-11-14 Thread Koichi Murase
2022年11月15日(火) 0:22 Chet Ramey : > On 8/11/22 5:56 PM, Koichi Murase wrote: > > Can we also change the behavior of TERM in a similar way with option > > 4? Currently, a temporal change of TERM clears keybindings of some > > keys (home, end, right, left, etc.) even when the temporal change does >

"cannot execute binary file" error with Bash 5.2

2022-11-14 Thread loic . yhuel
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS

bash-5.2.9 lib/readline/input.c fix for Tru64

2022-11-14 Thread Henry Bent
Hi, In bash-5.2.9 if HAVE_SELECT is set but HAVE_PSELECT is not, we still need the "fd_set readfds;" at line 808 in lib/readline/input.c. Found on Tru64 5.1. Also this platform doesn't have strtoimax but config.h is still setting #define HAVE_DECL_STRTOIMAX 1 #define HAVE_DECL_STRTOLL 1

Interest in Converting Macros to Inline Functions

2022-11-14 Thread Brent Pappas
Hi, I noticed that Bash code sometimes uses macros where a static inline function would appear to work equally as well. For instance, consider the macro ALL_ELEMENT_SUB defined in array.h: #define ALL_ELEMENT_SUB(c) ((c) == '@' || (c) == '*') I imagine this could be turned into a function

Re: bash "extglob" needs to upgrade at least like zsh "kshglob"

2022-11-14 Thread Koichi Murase
2022年11月1日(火) 0:59 Chet Ramey : > If someone wanted to do this, I would take a look at incorporating the > results, as long as it didn't add dependencies on, say, pcre or gnulib > regex. Instead of translating the pattern to a regular expression and compiling it by regcomp (), I have