Expose a version of mongo::shellExec that returns both the error code and stdout.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The shellExec implementation currently only returns stdout if the exit code is 0. In some cases, e.g. diff, the exit code will be nonzero even in the presence of a non-fatal error (diff returns 1 if it found a difference and 0 if it didn't). For these cases, it would be helpful to always get both the exit code and stdout.

            Assignee:
            Unassigned
            Reporter:
            William Qian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: