You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exit builtin doesn't immediately exit, it marks the session for exit so fish has a chance to clean up, e.g. to fire the exit handlers and such.
In a binding, you're still in the read loop, and it only checks the "session should exit" flag the next run through, so trying to run any command then exits.
Just exit works because there's also an exit bind function, so bind \ct exit does the equivalent of commandline -f exit - which also works here as a workaround.
Environment
The behavior I'm reporting still occurs under
sh -c 'env HOME=$(mktemp -d) fish'
.Problem & Reproduction
The following keybinding correctly exits the shell when typing ctrl+t:
However, the following keybinding does not exit the shell when typing ctrl+t:
Why is this the case?
The text was updated successfully, but these errors were encountered: