Re: ;exit in bash history causes bash to exit
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 wrote: > dude if u tell bash to exit it will exit .. > > On Tue, Mar 25, 2025, 20:41 Ethan Gascoigne 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 + 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 >> >>
Re: ;exit in bash history causes bash to exit
dude if u tell bash to exit it will exit .. On Tue, Mar 25, 2025, 20:41 Ethan Gascoigne 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 + 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 > >
Re: ;exit in bash history causes bash to exit
On Tue, Mar 25, 2025 at 22:16:15 +0100, microsuxx wrote: > when bash reads exit cmd it will exit > so bash reads rc and exits .. > also .. u may have a ';exit' alias .. The claim is that the ;exit appears in .bash_history (not .bashrc) and that this somehow causes a new instance of bash to exit. I doubt anyone will be able to reproduce this. We're almost certainly going to need more information from Ethan -- the contents of the relevant dot files, for example.
;exit in bash history causes bash to exit
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 + 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
Re: ;exit in bash history causes bash to exit
Hello Ethan, I can't reproduce the problem: > Repeat-By: > Open a terminal with bash as the shell > Type `;exit` This results in bash: syntax error near unexpected token `;' but not in closing the shell. > Re-open the terminal, it will immediately close Is there maybe something broken in your setup? Best regards, Martin
Re: ;exit in bash history causes bash to exit
ah bash history file .. .. yea i tried , bash dev doesnt segfault or anything , with it on a line and without an ending newline warm greetings .. :)) On Tue, Mar 25, 2025, 22:56 Greg Wooledge wrote: > On Tue, Mar 25, 2025 at 22:16:15 +0100, microsuxx wrote: > > when bash reads exit cmd it will exit > > so bash reads rc and exits .. > > also .. u may have a ';exit' alias .. > > The claim is that the ;exit appears in .bash_history (not .bashrc) > and that this somehow causes a new instance of bash to exit. > > I doubt anyone will be able to reproduce this. We're almost certainly > going to need more information from Ethan -- the contents of the > relevant dot files, for example. > >