[SERVER-4458] Code cleanup broke "two blank lines exits multi-line mode" Created: 08/Dec/11  Updated: 11/Jul/16  Resolved: 08/Dec/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Bug Priority: Minor - P4
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

My code cleanup the other day inserted a space inside the quotes instead of inside the parentheses, breaking the feature of being able to get out of multi-line entry mode in the shell. Move the space to where it should have gone.



 Comments   
Comment by Tad Marshall [ 08/Dec/11 ]

This was only broken in unreleased code and for about two days. No longer broken.

Comment by auto [ 08/Dec/11 ]

Author:

{u'login': u'', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-4458, SERVER-4460 Improve ctrl-C handling in the shell

Repair the incorrect edit I made in "code cleanup" by moving the space
out from between the quotes in 'if ( code.find( "\n\n\n" ) != string::npos )'
Turn off ctrl-C handling by the Console in Windows so we get the ctrl-C
and can decide what to do with it. Handle it the same way in Linux and
Windows. Set the 'gotInterrupted' flag on a ctrl-C so the multi-line
code can exit cleanly on a ctrl-C. This doesn't resolve SERVER-4460
because it doesn't answer the questions about whether to exit the shell
on a ctrl-C nor about what to do if a server command is running.
Branch: master
https://github.com/mongodb/mongo/commit/e5bd79b33f310f4ec2f35a71efd715ef92b9680c

Generated at Thu Feb 08 03:06:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.