[SERVER-144] shell doesn't allow whitespace before commands Created: 10/Jul/09  Updated: 12/Jul/16  Resolved: 10/Jul/09

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 0.9.7

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mongod/mongo:
Fri Jul 10 13:54:16 git version: 1d461d26b3d3504328c4c4f6ed7781045caa5c6e


Participants:

 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.


Generated at Thu Feb 08 02:53:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.