Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2095

console returning an error for lines terminated in equals (=)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.4
    • Affects Version/s: 1.6.3, 1.6.4
    • Component/s: JavaScript
    • None
    • Environment:
      Windows 7
    • ALL

      If I put the following jacascript in the console:
      var SomeEvent = db.events.findOne(

      { Name: 'Some stupid event' }

      );
      SomeEvent.Summary =
      "Some Text.\r\n\r\n" +
      "Some more text.";
      db.events.save(SomeEvent);
      db.events.findOne(

      { Name: 'Some stupid event' }

      );
      I get the following:
      > var SomeEvent = db.events.findOne(

      { Name: 'Some stupid event' }

      );
      > SomeEvent.Summary =

      Expected behavior of the shell would be to hold the line ending in equals in a buffer and append the next line to it before executing.

            Assignee:
            tonyh Tony Hannan
            Reporter:
            zippy1981 Justin Dearing
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: