From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8YUW-0006rs-SR for qemu-devel@nongnu.org; Mon, 14 Dec 2015 14:09:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8YUS-0003n2-Bs for qemu-devel@nongnu.org; Mon, 14 Dec 2015 14:09:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8YUS-0003me-6U for qemu-devel@nongnu.org; Mon, 14 Dec 2015 14:08:56 -0500 References: <20151213183401.18690.71169.malonedeb@wampee.canonical.com> <20151214113405.26440.40886.malone@gac.canonical.com> From: Eric Blake Message-ID: <566F13BF.6000903@redhat.com> Date: Mon, 14 Dec 2015 12:08:47 -0700 MIME-Version: 1.0 In-Reply-To: <20151214113405.26440.40886.malone@gac.canonical.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iqUXOlClfDjVFaLjeKPdE90c3wV0LJVUc" Subject: Re: [Qemu-devel] [Bug 1525682] Re: configure: fix POSIX compatibility issue List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 1525682 <1525682@bugs.launchpad.net>, qemu-devel@nongnu.org, Autoconf This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --iqUXOlClfDjVFaLjeKPdE90c3wV0LJVUc Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable [adding autoconf, which likes to document shell bugs] On 12/14/2015 04:34 AM, Dmitrij D. Czarkoff wrote: > OK, so I misidentified the issue and screwed up my bug report. >=20 > The shell is pdksh on OpenBSD, and the real issue is with parentheses: >=20 > $ a=3D1 > $ b=3D2 > $ echo "${a+($b)}" > ksh: ${a+($b)}": bad substitution That's a bug in pdksh; see the POSIX interpretation: http://austingroupbugs.net/view.php?id=3D221#c399 For parameter expansions other than the four varieties that provide for substring processing, within the string of characters from an enclosed "${" to the matching '}', the double-quotes within which the expansion occurs shall preserve the literal value of all characters, with the exception of the characters double-quote, backquote, , and . The fact that you are using "" outside the ${} means that all characters between + and } should be used literally (the same as if you had done 'echo "($b)"'). According to POSIX, it should not be a syntax error, so you should report this to the pdksh shell developers. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --iqUXOlClfDjVFaLjeKPdE90c3wV0LJVUc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWbxO/AAoJEKeha0olJ0NqoggH/2O0cndhTWJ67/y/2m1pU5JV xr+phJ4FoZy5i4626AX36N01Z1oIuKtXWM5994wKB/OLv7IAM1c1fOSCx/oO0vsZ 2WP//ypNuUPTnUC0TEZNnf0rhHIK2ILbuqikcGSOkAa5jGkSkhneRMIfW5hfFWSA xtt/97zZDtfxez6Dt7I0AYbuK6qxipik5xXl8a4j9OmE789ConFxdMeORQkDwcWJ W7RtXxCyy5z8Gg0lXXzvg/7aDSCNZsriYl34yefWTtBOW+HM+oYUECW4dLdHKrpB 9JBcn2HfMJrnBbbbY3ATh7gMEq5QqmzzfbMamwPFeVIf/owqTGwEQh4X21HaUmo= =7AYU -----END PGP SIGNATURE----- --iqUXOlClfDjVFaLjeKPdE90c3wV0LJVUc--