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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-rc1
    • Component/s: Shell
    • Labels:
    • Operating System:
      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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: