-
Notifications
You must be signed in to change notification settings - Fork 1
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
Make ^C in REPL abort the current line, if one is running #5558
Comments
From @zoffixznetIf you start the REPL and then run: sleep 50000 Or any other long running command, it'll "hang" for a long time. If you attempt to press Control+C to abort that line, you end up exiting REPL. When ^C is pressed while a line in REPL is running, it should abort that line, instead of exiting. And the current behaviour is to be maintained in that pressing ^C when nothing is running exitings the REPL. Relevant IRC conversation: http://irclog.perlgeek.de/perl6/2016-08-11#i_13007834 Specifically: |
From @lizmatWorking on this now
|
The RT System itself - Status changed from 'new' to 'open' |
From @lizmatFixed with be7ce04 , tests needed Turns out this was slightly more involved than just setting up a CATCH block, as the CATCH block will only be seen either in the executing thread, or in the .tap block of the signal handler. So in the end, I decided to always start the code in a separate thread with “start”, and let another Promise be reset by ^C, and then wait for either promise to be kept.
|
From @zoffixznetThis was reverted as it caused accidental breakage of variable declarations (RT#128973) |
Migrated from rt.perl.org#128900 (status was 'open')
Searchable as RT128900$
The text was updated successfully, but these errors were encountered: