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 Date: Fri, 16 Mar 2001 22:23:32 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Two questions: Moving Directories, Ctrl-Z Message-ID: <20010316222332.E3596@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20010316202101 DOT A2454 AT redhat DOT com> <20010316210855 DOT A3305 AT redhat DOT com> <004f01c0ae90$ae3e0e40$1419a8c0 AT mercury> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <004f01c0ae90$ae3e0e40$1419a8c0@mercury>; from mike@erdelynet.com on Fri, Mar 16, 2001 at 10:16:26PM -0500 On Fri, Mar 16, 2001 at 10:16:26PM -0500, Michael Erdely wrote: >I'm having a similar issue with the mv command. This is completely unrelated. cgf >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 -- cgf AT cygnus DOT com Red Hat, Inc. http://sources.redhat.com/ http://www.redhat.com/ -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple