Re: New array_expand_once option

2023-06-19 Thread alex xmb ratchev
On Mon, Jun 19, 2023, 22:13 Chet Ramey wrote: > On 6/19/23 3:42 PM, alex xmb ratchev wrote: > > > in short , i no [ and no compat .. > > leaving 2 out of 4 answers of u > > What does that mean? > ah oh u answered a bunch in batch just saying [ and compat i dont use leaving two other answers of u

Re: New array_expand_once option

2023-06-19 Thread Chet Ramey
On 6/19/23 3:42 PM, alex xmb ratchev wrote: in short , i no [ and no compat .. leaving 2 out of 4 answers of u What does that mean? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.edu

Re: New array_expand_once option

2023-06-19 Thread alex xmb ratchev
On Mon, Jun 19, 2023, 19:44 Chet Ramey wrote: > On 6/17/23 11:08 AM, alex xmb ratchev wrote: > > > To better describe its functionality, I renamed assoc_expand_once to > > array_expand_once. The old name is still accepted. > > > > > > its an opt that have manually to be enabled ? > > or i

Re: No form commsub if last token ends with & or ;

2023-06-19 Thread Chet Ramey
On 6/18/23 4:59 AM, Grisha Levit wrote: On Sunday, May 28, 2023, Grisha Levit wrote: Missing final `;': "$BASH" --pretty-print <<< $'${ : \;;}' ${ : \; } The latest set of fixes to this code solves these cases but others have issues: $ bash --pretty-print <<<$'${ : \;;\n}' ${ : \; } $ ba

Re: New array_expand_once option

2023-06-19 Thread Chet Ramey
On 6/17/23 11:08 AM, alex xmb ratchev wrote: To better describe its functionality, I renamed assoc_expand_once to array_expand_once. The old name is still accepted. its an opt that have manually to be enabled ? or is by default on It's off by default. When the next version of b

Re: New array_expand_once option

2023-06-19 Thread Chet Ramey
On 6/17/23 8:46 AM, Dennis Williamson wrote: On Sat, Jun 17, 2023, 6:59 AM alex xmb ratchev wrote: On 6/14/23 5:18 PM, alex xmb ratchev wrote: [[ -v a["$subscript"] ]] a small question about that .. do the quotes matter ? Try it without the quotes and with an empty or unset

Re: New array_expand_once option

2023-06-19 Thread Chet Ramey
On 6/17/23 7:58 AM, alex xmb ratchev wrote: On Thu, Jun 15, 2023, 20:40 alex xmb ratchev > wrote: On Thu, Jun 15, 2023, 15:06 Chet Ramey mailto:chet.ra...@case.edu>> wrote: On 6/14/23 5:18 PM, alex xmb ratchev wrote: >     [[ -v a["$subscript

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

2023-06-19 Thread Chet Ramey
On 6/16/23 1:02 AM, Wiley Young wrote: Bash Version: 5.2 Patch Level: 15 Release Status: release Description: `verb=(--) declare -ax verb` causes bash to crash and closes the active terminal tab. strace output includes this error: "getpeername(0, 0x7ffc74d185d0, [16])= -1 ENOTSOCK (Sock