Re: [PATCH] ASS_NOEVAL for BASHOPTS and SHELLOPTS

2024-02-13 Thread Chet Ramey
On 2/7/24 1:43 AM, Grisha Levit wrote: (Prompted by the report from Emanuele Torre in [1]) The value of currently_executing_command is garbage when there is an error during assignment when popping the variable context: $ bash -c 'declare -i SHELLOPTS; f() { local -; set -f; }; f' |& cat -v

[PATCH] ASS_NOEVAL for BASHOPTS and SHELLOPTS

2024-02-06 Thread Grisha Levit
(Prompted by the report from Emanuele Torre in [1]) The value of currently_executing_command is garbage when there is an error during assignment when popping the variable context: $ bash -c 'declare -i SHELLOPTS; f() { local -; set -f; }; f' |& cat -v bash: line 1: M-`^WM-R^N^\{: braceexp