To reproduce: (in the JS shell)
> db.test.save({_id:1, name:"O'Reilly"})
> db.test.find(
)
...
Notice that shell enters multi-line mode. Tad says that, "The isBalanced() routine sees the apostrophe/single-quote and scans looking for a matching quote. When it doesn't find one, it goes into multi-line mode. "
A question regarding this was asked on Google Groups: http://groups.google.com/group/mongodb-user/browse_thread/thread/fcd29bf712e49e13
- is related to
-
SERVER-13934 Escaping of parentheses/brackets/braces in shell regular expression literals does not work
- Closed
-
SERVER-5809 Double quote escaping bugged
- Closed
-
SERVER-3994 Brace matching in mongo shell could be better
- Closed