Re: [PATCH] use bind_lastarg to restore $_ when executing variable

2023-02-10 Thread Chet Ramey
On 2/7/23 9:00 AM, Emanuele Torre wrote: Before this patch, if allexport was set, $_ gained the "x" attribute after PROMPT_COMMAND finished running, that would only get removed after the next simple command is executed. Thanks for the report. This is a good fix. -- ``The lyf so short, the craf

[PATCH] use bind_lastarg to restore $_ when executing variable

2023-02-07 Thread Emanuele Torre
Before this patch, if allexport was set, $_ gained the "x" attribute after PROMPT_COMMAND finished running, that would only get removed after the next simple command is executed. $ PROMPT_COMMAND=: $ : foo $ declare -p _ declare -- _="foo" $ set -a $ : bar $ declare -p _ declare -x