bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ;exit in bash history causes bash to exit


From: Ethan Gascoigne
Subject: Re: ;exit in bash history causes bash to exit
Date: Wed, 26 Mar 2025 14:08:59 +0000

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 <gnu@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]