From: Eric Blake <eblake@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Lee Essen" <lee.essen@nowonline.co.uk>,
"Andreas Färber" <andreas.faerber@web.de>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/5] configure to set shell type
Date: Fri, 16 Mar 2012 09:58:57 -0600 [thread overview]
Message-ID: <4F636341.5060706@redhat.com> (raw)
In-Reply-To: <CAFEAcA_6kRYTwkZZF3RK66U3Cc-B1DPzJwExPHvOVN8no99gFg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1097 bytes --]
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 in
>> such a shell and by not having hardcoded /bin/sh creep in through some
>> shebang line.
>
> The way I expect this to work is that /bin/sh should be a posix shell...
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.
--
Eric Blake eblake@redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 620 bytes --]
next prev parent reply other threads:[~2012-03-16 15:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-16 12:02 [Qemu-devel] [PATCH 1/5] configure to set shell type Lee Essen
2012-03-16 12:14 ` Andreas Färber
2012-03-16 12:20 ` Lee Essen
2012-03-16 12:22 ` Lee Essen
2012-03-16 12:36 ` Andreas Färber
2012-03-16 12:15 ` Peter Maydell
2012-03-16 12:24 ` Andreas Färber
2012-03-16 12:35 ` Peter Maydell
2012-03-16 15:58 ` Eric Blake [this message]
2012-03-16 16:19 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F636341.5060706@redhat.com \
--to=eblake@redhat.com \
--cc=andreas.faerber@web.de \
--cc=lee.essen@nowonline.co.uk \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.