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

Wrong exit code when asking for help

    XMLWordPrintable

    Details

    • Sprint:
      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

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration