On 06/09/2010 05:01 PM, Stefano Lattarini wrote:
> * bootstrap: Do not create a temporary file to find the PATH
> separator.  Consistently use two-spaces indentation.  Also,
> cosmetic improvement to comments, and bumped copyright years.

> -# Find the path separator
> -echo "#! /bin/sh" >boot$$.sh
> -echo  "exit 0"   >>boot$$.sh
> -chmod +x boot$$.sh
> -if (PATH="/nonexistent;."; boot$$.sh) >/dev/null 2>&1; then
> +# Find the path separator.
> +if (PATH="/bin;/nonexistent"; export PATH; sh -c :) >/dev/null 2>&1; then

Will that always work on mingw, where you are not guaranteed the
existence of /bin/sh?  Then again, mingw is one of the platforms where
you want the path separator to be detected as ; rather than :.

-- 
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to