On Fri, Apr 3, 2020 at 9:13 AM Chet Ramey <chet.ra...@case.edu> wrote:
> Since this is all wrapped up in existing shell features, there's no good
> way to isolate the fc behavior. I've seen suggestions on here to disable
> set -v while running the DEBUG trap unconditionally, like ksh93 does.

I've found https://groups.google.com/d/topic/gnu.bash.bug/_oG51FIMDE0/discussion
which suggests disabling [set -v] during the e-a-e-c but AFAICT doesn't talk
about the DEBUG trap. Or are you saying that e-a-e-c is implemented using DEBUG?

> What do you think? Should bash just disable set -v when running the DEBUG
> trap?

ISTM that yes set -v should be disabled during execution of the DEBUG trap.
Separately, I've also never appreciated the echoing that happens post-e-a-e-c,
but I do appreciate the echoing that !foo does when executing the last command
with a prefix of "foo", so I guess I don't have a principled stand to take on
that front :)

Cheers,
-a

Reply via email to