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

quit() does not propagate argument as exit code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.2
    • Component/s: CLI Module, Shell API
    • Labels:
      None
    • Story Points:
      2
    • Documentation Changes:
      Not Needed
    • Sprint:
      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

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

              Dates

              Created:
              Updated:
              Resolved: