I current read this line from our configure.ac build script. I have search on Google for answer but not find it.
I assume it is shell script but what does this means, especially for -- ?
set -- "$progname" "$@"
From help set:
-- Assign any remaining arguments to the positional parameters. If there are no remaining arguments, the positional parameters are unset.
The reason for -- is to ensure that even if "$progname" or "$@" contain dashes, they will not be interpreted as command line options.
set changes the positional parameters, which is stored in $@. So in this case, it appends "$progname" to the beginning of the positional parameters received by the script.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With