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