Re: recovering from parser errors during compound assignment

2023-05-01 Thread Chet Ramey
On 4/26/23 5:48 PM, alex xmb ratchev wrote: to mr chet do u personally have an index of files , all .. like a human format note from since ever i come up once for my interest secondly , its about modernizing bash , by background .. imagine two three filled free text tiles ./runway ./related .

Re: recovering from parser errors during compound assignment

2023-05-01 Thread Chet Ramey
On 4/26/23 5:27 PM, Grisha Levit wrote: If a parser error is encountered when `local' is parsing an array assignment string, the installed unwind-protects never run: If there's a PROMPT_COMMAND set and a parser error is encountered during a compound assignment, the alias expansion state

Re: recovering from parser errors during compound assignment

2023-04-26 Thread alex xmb ratchev
On Wed, Apr 26, 2023, 23:28 Grisha Levit wrote: > If a parser error is encountered when `local' is parsing an array > assignment string, the installed unwind-protects never run: > > $ f() { local -a a='(())'; }; f > bash: syntax error near unexpected token `(' > $ declare -p a FUNCNAME > declare

recovering from parser errors during compound assignment

2023-04-26 Thread Grisha Levit
If a parser error is encountered when `local' is parsing an array assignment string, the installed unwind-protects never run: $ f() { local -a a='(())'; }; f bash: syntax error near unexpected token `(' $ declare -p a FUNCNAME declare -a a declare -a FUNCNAME=([0]="f") If there's a PROMPT_C