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

Mongo shell has trouble parsing \"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None
    • ALL

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: