>From:  Carl Johnson
>Subject:       Re: Segfault when running alias if PROMPT_COMMAND is not empty
>Date:  Mon, 7 Jul 2025 22:18:30 +0300
>> Thanks for the report. In the general case, evaluating the value of a shell
>> variable as a command should save and restore the parser state. In this
>> edge case, though, it's not necessary because PROMPT_COMMAND is only
>> evaluated before parsing a command. The attached patch should fix it.

>Thanks for the patch! I applied it and it fixes the issue - no more segfault.

It is hard to believe that this problem was actually found in real life.  Was 
it?

I.e., I find it hard to believe that the patch actually helps anyone's workflow 
to
proceed.  But maybe I'm wrong...

I was also a bit amazed at how extensive the patch is - seems to require quite 
a few
changes to quite a few files.

None of this should be interpreted as in any way implying that it isn't an 
interesting
read and/or a good patch.

=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.

Note that they always end up in my Spam file anyway, so it is annoying to have 
to
periodically clean that out.

Reply via email to