GNU Scientific Library - Bugs: bug #64851, gsl-config does not set correct...
You are not allowed to post comments on this tracker with your current authentication level.
bug #64851: gsl-config does not set correct status code
Submitter: | Sergey Litvinov <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 |
Release: | 2.7.1 |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
No changes have been made to this item
Powered by Savane 3.13-bb6a.
Corresponding source code
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