Re: git: 67ce8cec004c - main - Mk/Scripts: Fix the 'stripped' check from 'make check-plist' to report all unstripped files

From: Yuri Victorovich <yuri_at_freebsd.org>
Date: Fri, 02 Jun 2023 16:07:09 UTC
Hi Mathieu,



On 6/2/23 00:11, Mathieu Arnold wrote:
> Now, here, we are running `sh -c 'script' -- arg1 arg2 arg3`, so, $0
> contains `--`, and arg1-3 are in $@.


I don't think this is correct.


The command

 > sh -c 'echo "$@"' -- a b c


prints "b c" regardless of whether "--" is present. $0 is needed to 
print all arguments.

"--" simply means that all following arguments are passed verbatim to 
the inner command, without trying to parse the leading "-".


Yuri