when bash reads exit cmd it will exit
so bash reads rc and exits ..
also .. u may have a ';exit' alias ..

On Tue, Mar 25, 2025, 22:15 microsuxx <fxmb...@gmail.com> wrote:

> dude if u tell bash to exit it will exit ..
>
> On Tue, Mar 25, 2025, 20:41 Ethan Gascoigne <esgascoi...@gmail.com> wrote:
>
>> From: ethan
>> To: bug-bash@gnu.org
>> Subject: ;exit in bash history causes bash to exit
>>
>> Configuration Information [Automatically generated, do not change]:
>> Machine: x86_64
>> OS: linux-gnu
>> Compiler: gcc
>> Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt
>> -fexceptions         -Wp,-D_FORTIFY_SOUR>
>> uname output: Linux eLaptop 6.13.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun,
>> 23 Mar 2025 17:17:30 +0000 x86_64 GNU>
>> Machine Type: x86_64-pc-linux-gnu
>>
>> Bash Version: 5.2
>> Patch Level: 37
>> Release Status: release
>>
>> Description:
>>         Having ";exit" as the last entry in .bash_history, causes bash
>> to immediately exit when loading
>>         Note: Also appears to happen with alises. For example I have
>> `q` aliased to `exit`, and `;q` causes >
>>
>> Repeat-By:
>>         Open a terminal with bash as the shell
>>         Type `;exit`
>>         Re-open the terminal, it will immediately close
>>
>>

Reply via email to