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

mariadb_config --unknown-option exits with code 0

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.2.10
    • 10.2(EOL)
    • libmariadb
    • None

    Description

      When you run mariadb_config from mariadb-connector-c with an unknown option, it exits with code 0. One supposes that the return code should be 1 (the same code that mysql_config returns with the unknown option).

      # mariadb_config --unknown-option 
      mariadb_config: unrecognized option '--unknown-option'
      # echo $?
      0
      

      Attachments

        Activity

          kstreitova Kristyna Streitova created issue -
          kstreitova Kristyna Streitova made changes -
          Field Original Value New Value
          Description When you run mariadb_config from mariadb-connector-c with an unknown option, it exits with code 0. One supposes that the return code should be 1 (the same code that mysql_config returns with the unknown option).

          # mariadb_config --unknown-option
          mariadb_config: unrecognized option '--unknown-option'
          # echo $?
          0
          When you run mariadb_config from mariadb-connector-c with an unknown option, it exits with code 0. One supposes that the return code should be 1 (the same code that mysql_config returns with the unknown option).



          {code:java}
          # mariadb_config --unknown-option
          mariadb_config: unrecognized option '--unknown-option'
          # echo $?
          0
          {code}

          elenst Elena Stepanova made changes -
          Fix Version/s 10.2 [ 14601 ]
          Assignee Georg Richter [ georg ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 84115 ] MariaDB v4 [ 140547 ]

          People

            georg Georg Richter
            kstreitova Kristyna Streitova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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