-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
On Windows, bat file is generated, thus cause Ctrl-C produce the following behavior:
Terminate batch job (Y/N)?
Which is very inconvenient.
[The above is shamelessly copied from #8199. Thanks!]
From this discussion, the prompt message can be suppressed by specific batch file.
@echo off & setlocal EnableDelayedExpansion
ruby %*& call set $?=!ERRORLEVEL!
echo exit with %$?%
exit /b %$?%
The successful completion of the call set following a ruby invocation appears to prevent cmd.exe recognizing the ruby interrupted state.
Could anything get worse now if a command follows the ruby call?
I hope the prompt will no longer appear.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels