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

Copy-pasting multi-line strings with arrays does not work in shell

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.2.0-rc1
    • None
    • Shell
    • ALL

    Description

      Just found that copy paste for arrays [] which do not have an element on the same line as their opening brace does not work.

      Not sure if this is desired behavior. Example:

      > ops = [
      Wed Aug  1 02:00:38 SyntaxError: syntax error (shell):1
      >     { op : "findOne" , ns : "test.foo" , query : { _id : 1 } } ,
      ...     { op : "update" , ns : "test.foo" , query : { _id : 1 } , update : { $inc : { x : 1 } } }

      Attachments

        Activity

          People

            zhehao Zhehao Mao
            ranman Randall Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: