Skip to content
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

Terminate batch job bug (I think?) #108

Closed
volb opened this issue Jan 4, 2014 · 7 comments
Closed

Terminate batch job bug (I think?) #108

volb opened this issue Jan 4, 2014 · 7 comments
Labels
👆 clink Upstream issue in clink.

Comments

@volb
Copy link

volb commented Jan 4, 2014

When I boot a WEBrick server and CTRL-C to close it, the running server stuff goes away. Then:
Terminate batch job (Y/N)?
Y
Terminate batch job (Y/N)?
Y
'Y' is not recognized as an internal or external command, etc

And then I can input other commands. I'd love for this to get fixed, it slows down my Nanoc workflow by a lot. Thanks!

@sc0tt
Copy link
Contributor

sc0tt commented Jan 8, 2014

Are you sure this is unique to Cmder? I've seen this happen when using Ctrl-C in a regular windows console.

@Jackbennett
Copy link
Contributor

You can double tap the c in ctrl-c to break the process to really exit instead of pressing Y

Doesn't doing that give you similar weird behavior? If not maybe conEmu is not handling the interactive message quite right?

@gxcodes
Copy link

gxcodes commented Jan 8, 2014

It's not related to cmder AFAIK. In your ruby installation folder /bin, remove (backup first) 'rails.bat' and rename 'rails' to 'rails.rb'. Make sure Windows can handle .rb extension properly. I did that and ctrl-c works as expected like in *nix environment.

@samvasko
Copy link
Contributor

samvasko commented Jan 8, 2014

This is related to clink I assume. Try changing this line

Cmd has that odd behavior of asking that question independently of the process.

@Jackbennett
Copy link
Contributor

clink and cmder have moved on a lot I can't seem to reproduce this.

I tried serving a node static server and closing it with ctrl-c once stops it as expected.

@edmundo096
Copy link

Probably what samvasko pointed to, there is a setting inside \cmder\config\settings file:

# name: Auto-answer terminate prompt
# type: enum
#  0 = Disabled
#  1 = Answer 'Y'
#  2 = Answer 'N'
# Automatically answers cmd.exe's 'Terminate batch job (Y/N)?' prompts. 0 =
# disabled, 1 = answer 'Y', 2 = answer 'N'.
terminate_autoanswer = 1

@DRSDavidSoft
Copy link
Contributor

Duplicate of #1666.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👆 clink Upstream issue in clink.
Projects
None yet
Development

No branches or pull requests

7 participants