From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8ZYZ-00068N-Jz for qemu-devel@nongnu.org; Fri, 16 Mar 2012 11:59:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8ZYT-00028d-7E for qemu-devel@nongnu.org; Fri, 16 Mar 2012 11:59:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8ZYS-00028R-VS for qemu-devel@nongnu.org; Fri, 16 Mar 2012 11:59:01 -0400 Message-ID: <4F636341.5060706@redhat.com> Date: Fri, 16 Mar 2012 09:58:57 -0600 From: Eric Blake MIME-Version: 1.0 References: <1087EBB0-5CF0-49F1-971F-EE8ADC5E06DB@nowonline.co.uk> <4F633114.50601@web.de> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig13680D44E4BDA4E5619D6BFA" Subject: Re: [Qemu-devel] [PATCH 1/5] configure to set shell type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Lee Essen , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig13680D44E4BDA4E5619D6BFA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03/16/2012 06:35 AM, Peter Maydell wrote: >> The issue here is really just getting a fully POSIX-conformant shell. >> And the way I expect this to work is by executing configure and make i= n >> such a shell and by not having hardcoded /bin/sh creep in through some= >> shebang line. >=20 > The way I expect this to work is that /bin/sh should be a posix shell..= =2E Then your expectations are wrong. POSIX itself says that /bin/sh need not be the POSIX shell, and merely requires that you can query for a conforming PATH to use, and that the 'sh' found on that PATH search is the POSIX shell (that is, 'command -p sh' will be conforming, but won't necessarily be /bin/sh). This weasel-wording is intentionally written specifically for Solaris, since they refuse to make /bin/sh POSIX-conforming ("it might break 30-year-old legacy scripts - gasp!"), and instead set their conforming PATH to have /usr/xpg4/bin (or these days, /usr/xpg6/bin:/usr/xpg4/bin) prior to /bin. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig13680D44E4BDA4E5619D6BFA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJPY2NBAAoJEKeha0olJ0NqLKkH/0uQzVMttLuRCcVcgE6h8jMd 9/brBeMk4QSVTV/LFhTTQVSNIWwg0tvbN0s7ii1jetx8pU35a888z/6eVYZvA/Gs ramjpEt9VK71Ku/wLEj6MMzr+vHzASD+pFQi2r/7Yu+I4JtwfytHivTY2kCx2ATE 4msC8SQECHoC1vYLfJAhQ9mYtlmHOyZbriW7qBz2vV3fbKbVrP2yxLexmQIQKLSt qoQ53tV42KzWC3H7qLzTBpRDd5ohxrGKcK6GzdacwgvG1irawOetScdFb6sldMLW rsJVszyOs6zBDaLpGAXRdd6/8ZxzirtVFG+kKo2oiitNAkTXsKRbr4DQjjjf2+Y= =75YS -----END PGP SIGNATURE----- --------------enig13680D44E4BDA4E5619D6BFA--