-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Keith Thompson on 3/26/2008 10:56 AM: | (I used to use just "/", but Solaris for some supremely odd reason | allows a file "foo" to be referred to as "foo/", so I've cultivated | the habit of using "/.".)
Yes, that's a bug in older Solaris (but should be fixed in Solaris 10). | | I've recently found that the "mv" command, if given a second argument | of "nosuchdir/.", if "nosuchdir" doesn't exist, treats it as a file | name. I don't know whether this is specific to Cygwin or a bug in | the current GNU coreutils. Most likely a cygwin bug. Similar to the cygwin bug that foo/bar/.. is treated as foo/, even if foo/bar does not exist. And to prove it: $ mkdir example $ cd example $ touch foo $ strace mv foo bar/. 2>&1 |grep rename ~ 450 103717 [main] mv 2476 rename: 0 = rename (c:\cygwin\tmp\example\foo, c:\cygwin\tmp\example\bar\) That rename should have failed with ENOENT. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfq/PEACgkQ84KuGfSFAYCYeACfeWJorXuTISG2YSLVt56Oyax7 ZbIAoNRTtd5E+kclA6KISDFaIqCAkEIe =CO6t -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/