Date: Mon, 5 Jun 2023 08:20:33 -0300 From: Renato Botelho <garga@FreeBSD.org> To: Yuri Victorovich <yuri@freebsd.org>, 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: <04aa8f6b-a7ae-6f2d-9773-72607c8e04d1@FreeBSD.org> In-Reply-To: <37fbafab-4c20-a075-1eeb-87e027cd1861@tsoft.com> References: <202306020645.3526jV0Y019662@gitrepo.freebsd.org> <szfldnpn56vsuxnz43ngpaxjev4ywofryunpvrtausomgwhien@vy4flxbzvpgp> <37fbafab-4c20-a075-1eeb-87e027cd1861@tsoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 02/06/23 13:07, Yuri Victorovich wrote: > 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, Do you mind to implement a patch with mat's suggestion of quoting $0 -> "$0"? Thanks -- Renato Botelho
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?04aa8f6b-a7ae-6f2d-9773-72607c8e04d1>