On 11/02/2010 02:13 PM, Paul Eggert wrote:
> +AT_TAR_CHECK([
> +mkdir src dest
> +
> +for odd_name in '!' '"' '#' '$' '%' '&' "'" '(' ')' '*' '+' ',' '-' \
> + '...' ':' ';' '<' '=' '>' '?' '@' '[' '\0' '\\' '\n' '\r' '\' ']' '^' _ \
> + '`' '{' '|' '}' 'http:ouch' ; do
> + # Don't worry if the file cannot be created due to an oddball file system.
> + touch src/"$odd_name" 2>/dev/nullThis won't work in cygwin - there, \ and / are synonymous for directory separators, and 'touch src/\' will successfully touch the directory src. To correctly rule out cygwin, you need to try touching a longer pattern, as in: touch src/a"$odd_name"a such that the touch will fail on cygwin (directory src/a does not exist, so we can't create src/a\a aka. src/a/a) and correctly be skipped for this test. -- Eric Blake [email protected] +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
