delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/15/18:23:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Info: This message was accepted for relay by
smtp03.mrf.mail.rcn.net as the sender used SMTP authentication
X-Trace: UmFuZG9tSVa7qDLPwGOE/qefyvBZw6PJFcA9Ml8aGxs3JxuIqf4jj3K3NVVs4h1L
Message-ID: <3EC412EA.4030008@rfk.com>
Date: Thu, 15 May 2003 18:21:30 -0400
From: "Larry Hall (RFK Partners, Inc.)" <lhall AT rfk DOT com>
Reply-To: lhall AT rfk DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Hannu E K Nevalainen (garbage mail)" <garbage_collector AT telia DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: Renaming YELLER'S directories to something less aloud (Was:
case sensitivity and filenames)
References: <NGBBLLIAMFLGJEOAJCCEIELMCPAA DOT garbage_collector AT telia DOT com>
In-Reply-To: <NGBBLLIAMFLGJEOAJCCEIELMCPAA.garbage_collector@telia.com>

Hannu E K Nevalainen (garbage mail) wrote:
>  Hrm? What is this?
> 
> Changed cygwin.bat, rebooted, launched cygwin.bat...
> 
> $ cat /cygwin.bat
> @echo off
> 
> C:
> chdir C:\Program\cygwin\bin
> 
> set CYGWIN="tty notitle glob check_case:strict"
> 
> REM PATH
> REM HOME
> REM TERM
> REM LD_LIBRARY_PATH
> 
> bash -c 'rxvt -e /usr/bin/bash --login -i'
> 
> $ echo $CYGWIN
> tty notitle glob
> 
> Ehhh? Where did the remainder go? Should it be like that?
> (Tried with and without double quotes, rebooting inbetween
>  to make sure that cygwin.dll was REALLY flushed)


Works fine for me.  Maybe you reset CYGWIN in an rc file?


> $ ls
> POCKETPC/  SDKREG.INI  SQLCE.CHM  evc/
> 
> $ mv POCKETPC/ pocketpc
> mv: cannot overwrite directory `pocketpc/POCKETPC'
> 
> $ mv POCKETPC PocketPC
> mv: cannot copy a directory, `POCKETPC', into itself, `PocketPC/POCKETPC'
> 
> Well...
> 
> $ mv POCKETPC/ ../p; mv ../p PocketPC; ls -l
> total 1559
> dr-xr-xr-x    8 Hannu           0 May 15 20:35 PocketPC/
> ...
> 
> $ uname -a
> CYGWIN_NT-5.0 P450 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown
> Cygwin
> 
> $ date
> Thu May 15 22:47:34 WEDT 2003
> 
> Last update "an hour" ago.
> 
> 
>  Trying to do the uppper to lower case rename on a bunch of directories
> seems to create just garbage. Of some peculiar reason I get:
> 
> ./pocketpc/msnet
> ./pocketpc/msnet/msnet
> ./pocketpc/hpuppdate
> ./pocketpc/hpuppdate/ipaq
> ./pocketpc/hpuppdate/ipaq/kernal
> ./pocketpc/hpuppdate/ipaq/kernal/kernal
> ./pocketpc/hpuppdate/ipaq/kernal/kernal/sp22411
> ./pocketpc/hpuppdate/ipaq/kernal/kernal/sp22411/sp23388
> ./pocketpc/hpuppdate/ipaq/kernal/kernal/sp22411/sp23388/sp23398
> ./pocketpc/hpuppdate/ipaq/kernal/kernal/sp22411/sp23388/sp23398/sp23719
> ./pocketpc/hpuppdate/ipaq/kernal/kernal/sp22411/sp23388/sp23398/SP23398
> ./pocketpc/hpuppdate/ipaq/kernal/kernal/sp22411/sp23388/SP23388
> ./pocketpc/hpuppdate/ipaq/kernal/kernal/sp22411/SP22411
> ./pocketpc/hpuppdate/ipaq/kernal/kernal/KERNAL
> ./pocketpc/hpuppdate/ipaq/ipaq
> ./pocketpc/hpuppdate/ipaq/ipaq/kernal
> ./pocketpc/hpuppdate/ipaq/ipaq/kernal/kernal
> ./pocketpc/hpuppdate/ipaq/ipaq/kernal/kernal/sp22411
> ./pocketpc/hpuppdate/ipaq/ipaq/kernal/kernal/sp22411/sp23388
> ./pocketpc/hpuppdate/ipaq/ipaq/kernal/kernal/sp22411/sp23388/sp23398
> ./pocketpc/hpuppdate/ipaq/ipaq/kernal/kernal/sp22411/sp23388/sp23398/sp23719
> ./pocketpc/hpuppdate/ipaq/ipaq/kernal/kernal/sp22411/sp23388/sp23398/SP23398
> ./pocketpc/hpuppdate/ipaq/ipaq/kernal/kernal/sp22411/sp23388/SP23388
> ./pocketpc/hpuppdate/ipaq/ipaq/kernal/kernal/sp22411/SP22411
> ./pocketpc/hpuppdate/ipaq/ipaq/kernal/kernal/KERNAL
> 
> from this "source"
> 
> ./POCKETPC/MSNET
> ./POCKETPC/HPUPPDATE/IPAQ/SP23719
> ./POCKETPC/HPUPPDATE/IPAQ/SP23398
> ./POCKETPC/HPUPPDATE/IPAQ/SP23388
> ./POCKETPC/HPUPPDATE/IPAQ/SP22411
> ./POCKETPC/HPUPPDATE/IPAQ/KERNAL
> ./POCKETPC/HPUPPDATE/IPAQ
> ./POCKETPC/HPUPPDATE
> ./POCKETPC/CEDBSERVER
> 
> using
> $ find  -type d -printf " \
>    z=%p;mv \$z ./_x_; \
>    z=\'echo \$z | tr [:upper:] [:lower:]\'; \
>    echo \$z; \
>    mv ./_x_ \$z \
>   \n" >x
> $ source x
> 
> (backticks changed to ' for readabilty in email)
> 
> NOTE: The above is just parts of the entire file tree, to give you an
> example.
> 
> 
> Might I say **HELP**! ;-/
> It is late - am I tired or just outta luck?


Too tired it seems.  Remember, you're using a case-insensitive OS.
'AAA' and 'aaa' are the same.  If you want to change by case only,
you'll need to move the directory (or file) to a different name and
then move it to the desired, target name.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019