Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <004f01c0ae90$ae3e0e40$1419a8c0@mercury> From: "Michael Erdely" To: References: <20010316202101 DOT A2454 AT redhat DOT com> <20010316210855 DOT A3305 AT redhat DOT com> Subject: Re: Two questions: Moving Directories, Ctrl-Z Date: Fri, 16 Mar 2001 22:16:26 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 I'm having a similar issue with the mv command. Take this directory on Win2000 Server, CYGWIN=tty ntsec, NTFS [mike AT mercury]~/tmp:{143}:$ ls -l total 0 -rw-r--r-- 1 mike none 0 Mar 16 22:12 AbcDE.txt -rw-r--r-- 1 mike none 0 Mar 16 22:12 CdEfg.txt -rw-r--r-- 1 mike none 0 Mar 16 22:12 MIKE.txt -rwxr-xr-x 1 mike none 93 Mar 16 22:14 test.sh* [mike AT mercury]~/tmp:{144}:$ cat test.sh #!/bin/sh for file in *.txt; do TMP=`echo $file | tr "[A-Z]" "[a-z]"` mv $file $TMP done [mike AT mercury]~/tmp:{145}:$ ./test.sh mv: `AbcDE.txt' and `abcde.txt' are the same file mv: `CdEfg.txt' and `cdefg.txt' are the same file mv: `MIKE.txt' and `mike.txt' are the same file I know I've used a script almost like this before to take uppercase file names and make them all lower case. -ME ----- Original Message ----- From: "Christopher Faylor" To: Sent: Friday, March 16, 2001 9:08 PM Subject: Re: Two questions: Moving Directories, Ctrl-Z > On Fri, Mar 16, 2001 at 06:05:44PM -0800, Mark Allan Young wrote: > >> On Fri, Mar 16, 2001 at 04:44:31PM -0800, Mark Allan Young wrote: > >> >One thing I've noticed that changed with our recent upgrade > >> >to 1.1.8 was that moving a directory now seems to perform a copy > >> >and remove rather than just renaming a directory. Is there a way > >> >to just force the rename? what's the benefit of the copy over the > >> >rename? > >> > >> I just tried this. An "mv" in cygwin moves the directory without > >> copying. > >> > >> If it isn't doing this for you we'll need details. > > > >I can send an strace if you like, but I'll need to send it directly to > >you, as it get's pretty long... is there something else I could do to > >get you the information you require...? > > Before you send an strace, please send some obvious details like type of > disk (FAT, NTFS), contents of directory, cygcheck output, etc. A very > simple test case is always preferable. > > cgf > > -- > Want to unsubscribe from this list? > Check out: http://cygwin.com/ml/#unsubscribe-simple > > -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple