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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.7.4
    • 1.6.3, 1.6.4
    • JavaScript
    • None
    • Windows 7
    • ALL

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: