On Tue, Mar 25, 2025 at 05:55:23PM -0400, 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. > Easily tested: |$ echo ';exit' >some_file |$ HISTFILE=some_file bash |$ history | 1 ;exit No crash in any of the following: 5.2.37(1)-release (x86_64-slackware-linux-gnu) [slackware current] 5.2.32(1)-release (x86_64-redhat-linux-gnu) [fedora 41] 5.2.26(1)-release (x86_64-redhat-linux-gnu) [centos 10] 5.2.21(1)-release (x86_64-pc-cygwin) [cygwin 3.6.0-1.x86_64]
Cheers ... Duncan