Content-Type: multipart/mixed; boundary="===============8879831087479223775==" MIME-Version: 1.0 From: Jamie Heilman To: kbuild-all@lists.01.org Subject: Re: [PATCH] gcov: fail build on gcov_info size mismatch Date: Mon, 15 Mar 2021 20:32:04 +0000 Message-ID: In-Reply-To: List-Id: --===============8879831087479223775== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Linus Torvalds wrote: > On Sun, Mar 14, 2021 at 7:32 PM Rong Chen wrote: > > > > It can be reproduced with '-a' option in dash: > = > Oh, ok. That kind of explains it. > = > 'dash' is trash. Please somebody make a bug report. > = > > $ a=3D"!" > > $ [ "$a" =3D ".size" ] > > $ [ "$a" =3D ".size" -a "$b" =3D ".LPBX0," ] > > sh: 2: [: =3D: unexpected operator > = > This is 100% a dash bug. There is no question what-so-ever about it. > This is not some kind of "POSIX is ambiguous", or "the handling of > '-a' is complicated". > = > It's simply just that dash is buggy. > = > > While dash supports most uses of the -a and -o options, they have > > very confusing semantics even in bash and are best avoided. > = > No, they have perfectly sane semantics in bash, and in POSIX. > = > See > = > https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html > = > and there is absolutely zero question that bash does this correctly, > and dash does not. > = > But yes, it seems to be easy to work around, but still - could some > Ubuntu person please open a bug report on dash? fwiw, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D850202 --===============8879831087479223775==--