Mongo shell has trouble parsing \"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In the training session, we tried printing a string containing a single '"' in it from the shell. The following should have worked

      printjson(" \" ")
      

      The shell didn't understand that that string was properly terminated, and we had to cudgel it into submission in order to even get the shell to take the command

      > printjson(" \" ")
      ... "
      ... )
      Wed Feb 13 13:36:50 SyntaxError: unterminated string literal (shell):2
      

            Assignee:
            Unassigned
            Reporter:
            bard.bloom@10gen.com
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: