Date: Fri, 2 Jun 2023 09:07:09 -0700 From: Yuri Victorovich <yuri@freebsd.org> To: Mathieu Arnold <mat@freebsd.org> Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: 67ce8cec004c - main - Mk/Scripts: Fix the 'stripped' check from 'make check-plist' to report all unstripped files Message-ID: <37fbafab-4c20-a075-1eeb-87e027cd1861@tsoft.com> In-Reply-To: <szfldnpn56vsuxnz43ngpaxjev4ywofryunpvrtausomgwhien@vy4flxbzvpgp> References: <202306020645.3526jV0Y019662@gitrepo.freebsd.org> <szfldnpn56vsuxnz43ngpaxjev4ywofryunpvrtausomgwhien@vy4flxbzvpgp>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37fbafab-4c20-a075-1eeb-87e027cd1861>