X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-Authority-Analysis: v=1.0 c=1 a=xe8BsctaAAAA:8 a=TIHKHDbvC6RHt5G-mKMA:9 a=BcehvcRec5Gr9C7emSn8LDJ6Hq8A:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10 Message-ID: <47EAFCF1.90707@byu.net> Date: Wed, 26 Mar 2008 19:48:33 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com, kst AT mib DOT org Subject: Re: Bug in mv (coreutils 6.10) References: <20080326165642 DOT GA29317 AT nuthaus DOT mib DOT org> In-Reply-To: <20080326165642.GA29317@nuthaus.mib.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----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 ebb9 AT byu DOT net -----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/