Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-8012

Wrong exit code when asking for help

Details

    • 5.5.50

    Description

      Description:
      There are weird exit codes of some utilities:

      `mysql_waitpid --help` returns 255 instead of 0

      `mysqladmin --help` returns 1 instead of 0

      both of them accept

      '--help'

      (or '-?') as valid option according to the documentation

      How to repeat:

      $> mysql_waitpid --help &>/dev/null
      $> echo $?
       
      $> mysqladmin --help &>/dev/null
      $> echo $?

      Current resutls:

      255
      1

      Expected results:

      0
      0

      Attachments

        Activity

          hhorak Honza Horak added a comment - Cross reporting: http://bugs.mysql.com/bug.php?id=76737

          Thanks for the report.

          Reasoning from MDEV-4905 does not apply here, because the non-zero code is returned even when mysqladmin --help is run with a perfectly valid set of parameters.

          elenst Elena Stepanova added a comment - Thanks for the report. Reasoning from MDEV-4905 does not apply here, because the non-zero code is returned even when mysqladmin --help is run with a perfectly valid set of parameters.
          udan11 DELETEME added a comment -

          I just submitted a pull request here: https://github.com/MariaDB/server/pull/161

          udan11 DELETEME added a comment - I just submitted a pull request here: https://github.com/MariaDB/server/pull/161
          cvicentiu Vicențiu Ciorbaru added a comment - Pull request merged: 3c77a00d55efe901db9cb52ec000cc93d909a3c9 Also extra related fix with: 416006a3d8164684a1bfffa2e20a1f9894baf372

          People

            cvicentiu Vicențiu Ciorbaru
            hhorak Honza Horak
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.