bash 5.2 regression in optimize_connection_fork

2022-11-18 Thread Frode Nordahl
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Linux kbuild 5.19.0-23-generic #24-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct 14 15:39:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Machine Type:

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

2022-11-18 Thread Koichi Murase
2022年11月18日(金) 2:11 Chet Ramey : > "If a pattern ends with an unescaped , it is unspecified whether > the pattern does not match anything or the pattern is treated as invalid." > > Bash uses the former interpretation. If "the pattern is treated as invalid" > means trying to literally match the

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

2022-11-18 Thread Koichi Murase
2022年11月18日(金) 6:29 Chet Ramey : > The same is true for ranges. If either the first character or the second > character in the range is a slash it should cause the bracket to be matched > literally. > > Incidentally, I made an additional change so that an incomplete range > expression causes the

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

2022-11-18 Thread Chet Ramey
On 11/16/22 12:35 PM, Evan Gates wrote: On Mon Nov 14, 2022 at 1:00 PM MST, Chet Ramey wrote: 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.

Re: "cannot execute binary file" error with Bash 5.2

2022-11-18 Thread Chet Ramey
On 11/16/22 5:19 PM, Loïc Yhuel wrote: https://savannah.gnu.org/support/index.php?110744 I attached the patch I applied. It works, thank you. Btw, I didn't search on savannah since https://www.gnu.org/software/bash/manual/html_node/Reporting-Bugs.html doesn't mention it. Good idea; I