URL:
  <https://savannah.gnu.org/bugs/?64851>

                 Summary: gsl-config does not set correct status code
                   Group: GNU Scientific Library
               Submitter: slitvinov
               Submitted: Fri 03 Nov 2023 03:56:47 PM UTC
                Category: None
                Severity: 3 - Normal
        Operating System: 
                  Status: None
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 2.7.1


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 03 Nov 2023 03:56:47 PM UTC By: Sergey Litvinov <slitvinov>
gsl-config does not set the correct status code on unknown options.

$ gsl-config --x
*** output flushed ***
$ echo $?
0

Expected output is `1'. To fix, one can change a line in gsl-config.in

modified   gsl-config.in
@@ -70,8 +70,7 @@ while test $# -gt 0; do
        echo @GSL_LIBS@ @GSL_LIBM@
                ;;
     *)
-       usage
-       exit 1
+       usage 1
        ;;
     esac
     shift








    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64851>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to