Shell Grammar man page

2021-02-22 Thread Mike Jonkmans
Hi, It seems some things are missing in the bash manual. Notably definition of command and placements of coproc- and function-definition. The section 'SHELL GRAMMAR' describes: - simple-command - pipeline - list - compound-command - coproc - function-definition Simplified, a pipeline is:

Re: syntax error while parsing a case command within `$(...)'

2021-02-22 Thread Chet Ramey
On 2/22/21 12:59 AM, Oğuz wrote: 21 Şubat 2021 Pazar tarihinde Chet Ramey > yazdı: On 2/21/21 3:05 PM, Oğuz wrote: With the latest push to devel bash now accepts `if ! [[ ... ]] then :; fi' too, but not `:() ! [[ ... ]]'. Is `! [[ ... ]]' (or `

Re: syntax error while parsing a case command within `$(...)'

2021-02-22 Thread Oğuz
Okay, thank you 22 Şubat 2021 Pazartesi tarihinde Chet Ramey yazdı: > On 2/22/21 12:59 AM, Oğuz wrote: > >> >> >> 21 Şubat 2021 Pazar tarihinde Chet Ramey > chet.ra...@case.edu>> yazdı: >> >> On 2/21/21 3:05 PM, Oğuz wrote: >> >> With the latest push to devel bash now accepts `if !

Re: Behaviour of test -v with assoc array and quote character in key

2021-02-22 Thread Chet Ramey
On 2/15/21 1:28 PM, Daniel Gröber wrote: On Mon, Feb 15, 2021 at 09:11:48AM -0500, Chet Ramey wrote: `test' is always going to be problematic here because, as a shell builtin, its arguments undergo a round of word expansions before it's invoked. It's difficult to reliably detect the closing bra

building 5.1.3 -- some probs...

2021-02-22 Thread L A Walsh
I'm trying to build bash 5.1.3, and at first I tried w/bash-malloc, but got: /bash-5.1> ./bash malloc: subst.c:4751: assertion botched free: called with unallocated block argument Aborting...Aborted (core dumped) --- Another prob which seems a bit odd -- more than once, on the first time after a

Re: building 5.1.3 -- some probs...

2021-02-22 Thread Chet Ramey
On 2/22/21 8:08 PM, L A Walsh wrote: I'm trying to build bash 5.1.3, and at first I tried w/bash-malloc, but got: /bash-5.1> ./bash malloc: subst.c:4751: assertion botched free: called with unallocated block argument Aborting...Aborted (core dumped) You could start with the actual command that

Re: building 5.1.3 -- some probs...

2021-02-22 Thread L A Walsh
(Doi!) Forgot it was executing initial rc scripts. Turned on -x since last statement seems pretty mundane. Also 6 statements after where it claimed it crashed, is a custom function for printing pwd for the prompt. I've tried with different compile ops (optim vs. dbg). with builtin readline and in