This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Renaming YELLER'S directories to something less aloud (Was:case sensitivity and filenames)
- From: "Larry Hall (RFK Partners, Inc.)" <lhall at rfk dot com>
- To: "Hannu E K Nevalainen (garbage mail)" <garbage_collector at telia dot com>
- Cc: cygwin at cygwin dot com
- Date: Fri, 16 May 2003 11:22:03 -0400
- Subject: Re: Renaming YELLER'S directories to something less aloud (Was:case sensitivity and filenames)
- References: <NGBBLLIAMFLGJEOAJCCECELPCPAA.garbage_collector@telia.com>
- Reply-to: lhall at rfk dot com
Hannu E K Nevalainen (garbage mail) wrote:
From: Larry Hall (RFK Partners, Inc.) [mailto:lhall@rfk.com]
set CYGWIN="tty notitle glob check_case:strict"
...
$ 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?
$ cd ; pwd ; whoami ; ls -A; grep -i CYGWIN *
/home/Hannu
Hannu
.Xauthority .bash_history .mc/ .rm_bc_paths .vimrc bx/ rexx/
.Xdefaults .bash_logout .ncftp/ .ssh/ Projects/ md5/
scripts/
.adtrc .inputrc .profile .viminfo bin/ pfree@ sed/
--8<--
Maybe check /etc too?
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.
=-) I'm aware of that, renaming files with just case differences works fine
"outside of" cygwin. I'm an Amiga "oldtimer" (1985++) where the situation is
the same.
Actually, I should've checked some of these details before posting. Cygwin
mv renames a *file* just fine when the name only differs by case.
Directories are still an issue. AFAICS, this is the same as in DOS using
'move'. It works fine in DOS if you use 'rename' but that's different
command with different semantics.
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.
Well, that currently seems to be the only option... IMO the first simple
mv FILE File
should be have worked.
Actually, the above does work in Cygwin if 'FILE' is a file.
May I guess that this is related to the problems with stat() ?
I doubt it. If there's a place to make a change for the benefit of 'mv',
that would be in the 'mv' source.
--
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/