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