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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.2.0-rc1
    • Affects Version/s: None
    • Component/s: Shell
    • ALL

      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 } } }
      

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

              Created:
              Updated:
              Resolved: