Re: New array_expand_once option

2023-06-15 Thread Chet Ramey
On 6/14/23 5:18 PM, alex xmb ratchev wrote: [[ -v a["$subscript"] ]] is already an arithmetic expansion error in bash-5.2, but not in bash-5.1. hello there .. i dont get much it d be an arith err if array wasnt -A .. ? Yes, because only one expansion is performed, and so the subscr

Re: New array_expand_once option

2023-06-15 Thread alex xmb ratchev
On Thu, Jun 15, 2023, 15:06 Chet Ramey wrote: > On 6/14/23 5:18 PM, alex xmb ratchev wrote: > > > [[ -v a["$subscript"] ]] > > > > is already an arithmetic expansion error in bash-5.2, but not in > bash-5.1. > > > > > > hello there .. > > > > i dont get much > > it d be an arith err if ar

Re: `jobs` shows output even when nothing has been started in the background

2023-06-15 Thread alex xmb ratchev
On Thu, Jun 15, 2023, 00:13 Ajeet D'Souza <98aj...@gmail.com> wrote: > Hey Chet, > > Thanks for the quick reply. I have some follow-up questions: > >- Is there an elegant way I can start an external process without it >showing up under jobs, even on affected versions? My current best idea

posix_spawn (or vfork) support?

2023-06-15 Thread Sam James
Hi, Sorry if this has come up before - I did take a look and couldn't find anything. Could bash use posix_spawn/vfork instead of the rather heavyweight fork? I'm aware of the work in `devel` to add nofork comsubs which is very intriguing, but I do wonder about another suggestion: could bash use

5.2 fails to treat a missing conditional expression as an error of syntax

2023-06-15 Thread Kerin Millar
As below. $ bash -c 'declare -p BASH_VERSION' declare -- BASH_VERSION="5.2.15(1)-release" $ bash -c '[[ ]]; echo fin'; echo $? 0 $ bash -c 'declare -p BASH_VERSION' declare -- BASH_VERSION="5.1.16(1)-release" $ bash -c '[[ ]]; echo fin'; echo $? bash: -c: line 1: syntax error near `;' bash: -c: l

`verb=(--) declare -ax verb` causes an ENOTSOCK segfault

2023-06-15 Thread Wiley Young
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,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASS