]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
$@ over $*
authorHarmen Stoppels <me@harmenstoppels.nl>
Mon, 21 Aug 2023 10:27:35 +0000 (12:27 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 25 Aug 2023 10:31:47 +0000 (12:31 +0200)
configure

index ea6d163be09cf3cf46cd9a1f6db73cfbc338caed..c146a1fd2e608b15382ee48e64675d2dd1954605 100755 (executable)
--- a/configure
+++ b/configure
@@ -227,13 +227,13 @@ test=ztest$$
 # put arguments in log, also put test file in log if used in arguments
 show()
 {
-  case "$*" in
+  case "$@" in
     *$test.c*)
       echo "=== $test.c ===" >> configure.log
       cat $test.c >> configure.log
       echo "===" >> configure.log;;
   esac
-  echo $* >> configure.log
+  echo "$@" >> configure.log
 }
 
 # check for gcc vs. cc and set compile and link flags based on the system identified by uname
@@ -562,15 +562,15 @@ EOF
 if ($CC -c $CFLAGS $test.c) 2>/dev/null; then
   try()
   {
-    show $*
-    test "$( ($*) 2>&1 | tee -a configure.log)" = ""
+    show "$@"
+    test "$( ("$@") 2>&1 | tee -a configure.log)" = ""
   }
   echo - using any output from compiler to indicate an error >> configure.log
 else
   try()
   {
-    show $*
-    ( $* ) >> configure.log 2>&1
+    show "$@"
+    ( "$@" ) >> configure.log 2>&1
     ret=$?
     if test $ret -ne 0; then
       echo "(exit code $ret)" >> configure.log