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

Mongo shell has trouble parsing \"

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

      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 Unassigned
            Reporter:
            bard.bloom@10gen.com bard.bloom@10gen.com
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: