Chet Ramey writes:
> On 7/5/25 2:57 PM, Carl Johnson wrote:
>
>> Bash Version: 5.3
>> Patch Level: 0
>> Release Status: release
>> Description:
>> When alias definition contains the 'unalias' builtin with the alias's
>> name as its argument with a newline anywhere after the builtin
>> invocation,
>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
> 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.
Tha
On 7/5/25 2:57 PM, Carl Johnson wrote:
Bash Version: 5.3
Patch Level: 0
Release Status: release
Description:
When alias definition contains the 'unalias' builtin with the alias's
name as its argument with a newline anywhere after the builtin
invocation, running the alias when PROMPT_COMMAND is
From: carl
To: bug-bash@gnu.org
Subject: Segfault when running alias if PROMPT_COMMAND is not empty
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2
uname output: Linux carl-pc 6.15.4-arch2-1 #1 SMP