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

Shell: Make `quit` an alias for `exit`

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • Shell
    • None
    • Server Security

    Description

      Currently, if a user types `quit` into the shell, they are presented with this response:

      > quit
      function quit() {
          [native code]
      }
      

      Which is unhelpful, to say the least.  Of course, humans are clever and will try `exit` next and succeed.  Might even try calling quit() like a function and succeed that way too.  However, why not save that extra step and accept `quit` as a bare command helper?

      Attachments

        Activity

          People

            backlog-server-security Backlog - Security Team
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: