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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.6.3, 1.6.4
    • Fix Version/s: 1.7.4
    • Component/s: JavaScript
    • Labels:
      None
    • Environment:
      Windows 7
    • Operating System:
      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

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

              Dates

              Created:
              Updated:
              Resolved: