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 } } }
- is duplicated by
-
SERVER-6732 V8 Scripting: Multiline JSON Arrays break using square brackets alone
- Closed
- related to
-
SERVER-3994 Brace matching in mongo shell could be better
- Closed