Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-917

quit() does not propagate argument as exit code

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.0.2
    • CLI Module, Shell API
    • None
    • 2
    • Not Needed
    • Iteration Hamburg

    Description

      Legacy shell:

      > quit(10)
      $ echo $?
      10
      

      mongosh:

      > quit(10)
      $ echo $?
      0
      

      We should probably also try to ensure that process.exitCode is honored when no explicit code is passed.

      Attachments

        Activity

          People

            anna.henningsen@mongodb.com Anna Henningsen
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: