bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test-update-copyright requires perl


From: Eric Blake
Subject: Re: test-update-copyright requires perl
Date: Sat, 15 Aug 2009 09:28:00 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jim Meyering on 8/15/2009 4:53 AM:
>> For the record, I discovered this because 'perl -ei' fails on cygwin 1.5 [but
>> works in cygwin 1.7] because of older cygwin's inability to delete in-use 
>> files:
> 
> That should be easy to detect.
> 
> Do you mean that perl -pi fails on cygwin 1.5?
> For example, would this fail?
> 
>   echo a > f && perl -pi -e s/a/b/ f

It's weirder than that:

$ echo 1 > f
$ perl -pi -e 's/1/2/' f
$ cat f
2
$ cat > foo <<\EOF
#!/usr/bin/perl -pi
s/2/3/;
EOF
$ chmod +x foo
$ ./foo f
Can't do inplace edit on f: Permission denied.
$ ls f*
f.bak  foo
$ mv f.bak f
$ perl ./foo f
Can't do inplace edit on f: Permission denied at ./foo line 1.
$ ls f*
foo
$ ./foo <<EOF
2
EOF
3

I'm not sure why some invocations work and others fail, but the point is
that update-copyright doesn't work as-is on cygwin 1.5; and it also has
the annoying failure path of either renaming or worse deleting the
original file.  So I'm not sure how best to add skip logic to
test-update-copyright to avoid spurious test failures.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqG1AAACgkQ84KuGfSFAYCUSwCfW5Wn3SKc2lqw42zH8y71OeF9
A1YAni606RmDWiWoU/XxTlnIMHtb7sWa
=7hmi
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]