This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Rename C files to .c in GCC source
- From: Mikhail Maltsev <maltsevm at gmail dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>, DJ Delorie <dj at redhat dot com>
- Cc: pinskia at gmail dot com, gcc at gcc dot gnu dot org, Jonny Grant <jg at jguk dot org>
- Date: Sat, 31 Jan 2015 15:18:08 +0300
- Subject: Re: Rename C files to .c in GCC source
- Authentication-results: sourceware.org; auth=none
- References: <CAGc9EveH8c7WfQPmDEjrCpSOmxabAECGRBC8T8NUiHbSz2QNmw at mail dot gmail dot com> <EE340ECC-F8A5-49B5-9C83-CD616BC1DDAF at gmail dot com> <xnlhkkx80o dot fsf at greed dot delorie dot com> <87zj8zyzn8 dot fsf at mid dot deneb dot enyo dot de>
31.01.2015 14:10, Florian Weimer writes:
> Aren't current Windows file systems case-preserving? Then they
> shouldn't have no problems with .C files.
They are, but with some limitations: you can't create two files with
names differing only by case. I didn't try API functions, but here is
how it looks like in command line.
Linux:
$ touch a
$ touch A
$ touch B
$ ls
a A B
Cygwin (Windows 8.1, x64, NTFS):
$ touch a
$ touch A
$ touch B
$ ls
a B
Windows command prompt (on same system):
>echo 1 > a
>echo 1 > A
>echo 1 > B
>dir
(several non-relevant lines omitted)
31.01.2015 14:58 4 a
31.01.2015 14:58 4 B
Renaming does work:
Cygwin:
$ mv ./a ./A
$ ls
A B
Native:
>rename a A
>dir
(...)
31.01.2015 14:58 4 A
31.01.2015 14:58 4 B
--
Regards,
Mikhail Maltsev