quit() does not propagate argument as exit code

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.0.2
    • Affects Version/s: None
    • Component/s: CLI Module, Shell API
    • None
    • 2
    • Iteration Hamburg
    • Not Needed

      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.

            Assignee:
            Anna Henningsen
            Reporter:
            Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: