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

shell doesn't allow whitespace before commands

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 0.9.7
    • None
    • Shell
    • None
    • mongod/mongo:
      Fri Jul 10 13:54:16 git version: 1d461d26b3d3504328c4c4f6ed7781045caa5c6e

    Description

      > use foo
      switched to db foo
      > use foo
      Fri Jul 10 14:07:55 JS Error: SyntaxError: missing ; before statement (shell):0

      (note extra space between ">" and "use".)

      It works fine with stuff like:

      > db.test.find()
      > db.test.find()

      So I'm guessing it's the use/show/whatever-type command.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            kristina Kristina Chodorow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: