Currently, new users who may not be very familiar with a shell environment can easily find themselves in a mongo shell, such as verifying they've correctly added it to their path. Then, they may not exit the mongo shell but instead try to launch a new shell or connect to a database. This results in the following errors.
MongoDB Enterprise > mongo 2018-11-30T13:42:15.701-0500 E QUERY [js] ReferenceError: mongo is not defined : @(shell):1:1 MongoDB Enterprise > mongo localhost 2018-11-30T13:45:37.703-0500 E QUERY [js] SyntaxError: missing ; before statement @(shell):1:6
There are currently 22 threads in Education's new forums that show users encountering this situation, and countless more in our old forums. Adding a default to shellHelper would help ameliorate this and provide better feedback to our newer users.
- related to
-
SERVER-21493 Double quotes in shellHelper args aren't handled properly
- Closed
-
SERVER-17162 Give nice error if you run mongoimport/tool from javascript shell
- Closed