yea make bug report .. in my experience , such bash codes on github have very low code quality ..
peace .. ++ On Wed, Mar 26, 2025, 15:09 Ethan Gascoigne <esgascoi...@gmail.com> wrote: > I do have an alias with `&& exit` in it, but removing that alias > doesn't get rid of the bug. I've tested it on another system (Xubuntu > 24.04, stock install), and the issue didn't occur. > > Narrowed it down to the line `eval "$(fasd --init auto)"` in my > .bashrc. Must be some kindof bug with fasd > (https://github.com/whjvenyl/fasd). Any idea how fasd could cause > `;exit` to be interpreted as a valid command? Running `alias exit` > shows that it's not aliased to anything. > > Weird that fasd causes `;exit` to be a valid command, and also that it > causes bash to execute it when loading if it's the last thing in the > history file. I'll raise a bug report on the fasd GitHub. Apologies > for the erroneous report. > > Cheers, > Ethan > > > > On Tue, 25 Mar 2025 at 20:24, Martin Schulte <g...@schrader-schulte.de> > wrote: > > > > 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 > >