On Thu, 28 Nov 2024 at 13:54, David Moberg wrote:
> Yes, if seems like the way to do this in bash. It's unfortunate because
> doing it with a binding is more elegant as it avoids polluting the terminal
> output and shell history.
>
You can avoid polluting history by inserting " fg\n" with a lead
On Thu, Nov 28, 2024 at 08:23:48 +0400, Ivan Shapovalov wrote:
> Bash Version: 5.2
> Patch Level: 37
> Release Status: release
>
> Description:
> Regression: When an EXIT trap runs, it runs in global context, i.e.
> does not see the locals defined in the function that was executing
>
2024年11月28日(木) 13:59 Ivan Shapovalov :
> Repeat-By:
> See the attached script.
I was testing the behavior of Bash, but it seems Bash's behavior has
never been stable and consistent. With the following test cases
#1...#8,
#1 "$bash" -ec'trap "echo \"[\$FUNCNAME:\$f]\"" EXIT; f() { loca