[SERVER-3909] Blank lines don't work in the mongo shell starting with 2.0 Created: 20/Sep/11 Updated: 11/Jul/16 Resolved: 26/Sep/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.0.0 |
| Fix Version/s: | 2.0.1, 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Robert Stam | Assignee: | Antoine Girbal |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 64-bit |
||
| Backwards Compatibility: | Major Change |
| Operating System: | Windows |
| Participants: |
| Description |
|
The following input (with a blank line) works in mongo shell prior to 2.0: C:\mongodb\mongodb-win32-x86_64-1.8.2\bin>mongo > doc { "a" : 1, "b" : 2 }> But no longer works in mongo shell 2.0: C:\mongodb\mongodb-win32-x86_64-2.0.0\bin>mongo Tue Sep 20 12:59:57 SyntaxError: syntax error (shell):1 |
| Comments |
| Comment by auto [ 09/Oct/11 ] |
|
Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}Message: |
| Comment by auto [ 09/Oct/11 ] |
|
Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}Message: |
| Comment by Antoine Girbal [ 26/Sep/11 ] |
|
there was a condition to bail out of multiline code in case 2 empty lines are entered. |
| Comment by auto [ 26/Sep/11 ] |
|
Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}Message: |
| Comment by auto [ 26/Sep/11 ] |
|
Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}Message: |