On 06/06/2012 09:15 PM, Anthony Liguori wrote: > On 06/06/2012 08:16 PM, Paolo Bonzini wrote: >> Il 06/06/2012 14:03, Peter Maydell ha scritto: >>> Can we use >>> mkdir -p "$(dirname "$2")" >>> >>> or are we still trying to be compatible with some non-POSIX >>> shell from the dawn of time? >> >> Looks like we can, there are other occurrences of $() in configure. > > I saw that too, but I thought $() was a bash-ism.
$() is required by POSIX. The problem is that Solaris' /bin/sh does not understand $(), since it is not a POSIX shell. If you take care to sanitize shell execution into a sane shell (yes, it is possible to write configure scripts that re-execute themselves under a better shell than /bin/sh), then using $() can be one of the decision points on whether a better shell has been found. -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature