Content-Type: multipart/mixed; boundary="===============0529212550720922121==" MIME-Version: 1.0 From: Herbert Xu To: kbuild-all@lists.01.org Subject: Re: [PATCH] gcov: fail build on gcov_info size mismatch Date: Tue, 16 Mar 2021 20:51:31 +1100 Message-ID: <20210316095131.GA18709@gondor.apana.org.au> In-Reply-To: List-Id: --===============0529212550720922121== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Linus Torvalds wrote: > > See: > = > [torvalds(a)ryzen ~]$ a=3D"!" [ "$a" =3D ".size" ] > = > is fine, but > = > [torvalds(a)ryzen ~]$ a=3D"!" [ $a =3D ".size" ] > -bash: [: =3D: unary operator expected This isn't doing what you think it's doing. The first assignment to a is not in effect when the shell is expanding $a so what you're actually running is a=3D"!" [ =3D .size ] Which is why it bombs out. To get the desired result you need a semicolon: $ a=3D"!"; [ $a =3D ".size" ] $ = Cheers, -- = Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --===============0529212550720922121==--