Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closing when last command failed #79

Closed
iainvm opened this issue Dec 22, 2017 · 4 comments
Closed

Closing when last command failed #79

iainvm opened this issue Dec 22, 2017 · 4 comments

Comments

@iainvm
Copy link

iainvm commented Dec 22, 2017

It seems when trying to detach from WSLTTY when the last command that was run had a non-zero exit code causes the window not to close and instead show the red bar at the top of the window telling the user the exit code.

Steps:

  • Run a non-existant command.
  • Try to CTRL+D to detach from the tty.
@mintty
Copy link
Owner

mintty commented Dec 22, 2017

[Terminating the shell isn't "detaching"]

Remove "-h err" from the command line in the Windows shortcut.

@mintty mintty changed the title Detaching when last command failed Closing when last command failed Dec 22, 2017
@willpower232
Copy link

I have seen the red bars randomly too but never associated it with non-existant commands, presumably -h err picks up all sorts of things?

The text in the red bar for this error reads /bin/wslbridge: Exit 127. but I remember seeing other numbers there.

@mintty
Copy link
Owner

mintty commented Dec 22, 2017

It's the exit status of the client program, usually the shell. Shells typically propagate the exit status of the last process they called.
This is actually a remainder of a testing phase, and I think I'll remove it. Users can configure the Hold mode in their config file if they like.

@mintty
Copy link
Owner

mintty commented Jan 8, 2018

Released 1.8.3.

@mintty mintty closed this as completed Jan 8, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants