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

2022-11-16 Thread Loïc Yhuel
> 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. But I see the bug tracker is mentioned on

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

2022-11-16 Thread Chet Ramey
On 11/14/22 6:06 AM, Koichi Murase wrote: However, I noticed two strange behaviors of the current engine. Before adjusting the behavior of the new engine and submitting it for review, I would like to confirm the (expected) behavior of the current engine in the current devel. These two

Re: local/typeset/declare -p - outputs invalid declare -- -

2022-11-16 Thread Emanuele Torre
On Wed, Nov 16, 2022 at 02:05:56PM -0500, Chet Ramey wrote: > It doesn't matter. `local -' is the only way to save and restore the > options; `declare -p -' and `typeset -p -' should have no special meaning. The `declare -p'/`typeset -p' commands and the `local -p' command are different commands.

Re: local/typeset/declare -p - outputs invalid declare -- -

2022-11-16 Thread Chet Ramey
On 11/16/22 12:12 PM, Emanuele Torre wrote: The 31f4d468b60eb27d768ef56d0a8b4982346465d9 commit on the devel branch, addressed this issue, but only partially: bash-5.1$ ./bash --version |& head -n 1 GNU bash, version 5.2.9(6)-maint (x86_64-pc-linux-gnu) bash-5.1$ ./bash -c 'a ()

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

2022-11-16 Thread Alex fxmbsw7 Ratchev
On Tue, Nov 15, 2022, 09:33 Alex fxmbsw7 Ratchev wrote: > i d be all for changeable glob s appearing > by chance integrate into loops expansion of array vars .. not just file globs .. > > On Tue, Nov 15, 2022, 02:40 Chet Ramey wrote: > >> On 10/3/22 2:56 PM, Evan Gates wrote: >> > --- >> > >>

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

2022-11-16 Thread Evan Gates
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. > > Thanks for the patch.

Re: local/typeset/declare -p - outputs invalid declare -- -

2022-11-16 Thread Emanuele Torre
The 31f4d468b60eb27d768ef56d0a8b4982346465d9 commit on the devel branch, addressed this issue, but only partially: bash-5.1$ ./bash --version |& head -n 1 GNU bash, version 5.2.9(6)-maint (x86_64-pc-linux-gnu) bash-5.1$ ./bash -c 'a () { local -; local -p; declare -p -; typeset -p -;

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

2022-11-16 Thread Chet Ramey
On 11/15/22 7:25 PM, Koichi Murase wrote: 2022年11月16日(水) 0:11 Chet Ramey : It should be possible to simulate a machine like this by manually editing config.h after running configure. You are right. There are three more places to fix in addition to the two in the previous reply (see the