New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exit
inside fish_prompt function doesn't exit immediately
#8033
Comments
I'm doing so because I have a "launcher" mode where the shell exits after executing a single command. |
That's what |
The current behaviour is interestingly broken, though, and I think should be fixed. |
I mean I'm using the shell as a launcher, so I need interactivity. It's like a shell session but it closes before drawing the prompt a second time. |
That's fish -c 'read -P "PROMPT " --shell -l command; eval $command' |
Thank you, I didn't know about |
Fixed in ba2e7db. Neat find. |
Issue description
When the
exit
command is executed insidefish_prompt
, the shell doesn't exit unless some a command is typed and executed (pressingenter
alone doesn't work).Steps to reproduce:
set config.sh to
run
fish
and notice it doesn't exit.Commit that introduced the issue
b018218 (Rework exit command)
The text was updated successfully, but these errors were encountered: