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

quit() does not propagate argument as exit code

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

      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@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: