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

shell doesn't allow whitespace before commands

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.9.7
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Environment:
      mongod/mongo:
      Fri Jul 10 13:54:16 git version: 1d461d26b3d3504328c4c4f6ed7781045caa5c6e

      > 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.

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

              Created:
              Updated:
              Resolved: