This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[OT?] Strange filesystem behaviour


Is there someone out there who can explain this... is it plain legacy?
If there is no better explanation, lets just have it added to the archives.

 I bumped into this while moving files between OS'es... using tar.
In fact tar has more restrictions on filenames, making me wonder whether all
really are necessary. (WinRAR extracted more files than tar)


FAT, FAT32 and NTFS (W2K tested) doesn't matter - not even using
explorer[1], so it is the OS filesystem(s?) doing this, not cygwin.

$ uname -a
CYGWIN_NT-5.0 P450 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown
Cygwin

$ cat ~/TEST
mkdir zz
cd zz
mkdir x x. x.. x...
ls -ld x*
mkdir 'y' 'y.' 'y..' 'y...'
ls -ld y*
mkdir 'z' 'z\056' 'z\056\056' 'z\056\056\056'
ls -ld z*

mkdir a a.a a..a a...a
ls -ld a*

cd ..
rm -rf zz

#NTFS
$ source ~/TEST
mkdir: cannot create directory `x.': File exists
mkdir: cannot create directory `x..': File exists
mkdir: cannot create directory `x...': File exists
drwxr-xr-x    2 Hannu           0 May 30  2003 x/
mkdir: cannot create directory `y.': File exists
mkdir: cannot create directory `y..': File exists
mkdir: cannot create directory `y...': File exists
drwxr-xr-x    2 Hannu           0 May 30  2003 y/
drwxr-xr-x    3 Hannu           0 May 30  2003 z/
drwxr-xr-x    2 Hannu           0 May 30  2003 a/
drwxr-xr-x    2 Hannu           0 May 30  2003 a...a/
drwxr-xr-x    2 Hannu           0 May 30  2003 a..a/
drwxr-xr-x    2 Hannu           0 May 30  2003 a.a/

#FAT32
$ source ~/TEST
mkdir: cannot create directory `x.': File exists
mkdir: cannot create directory `x..': File exists
mkdir: cannot create directory `x...': File exists
drwxr-xr-x    2 Hannu           0 May 30  2003 x/
mkdir: cannot create directory `y.': File exists
mkdir: cannot create directory `y..': File exists
mkdir: cannot create directory `y...': File exists
drwxr-xr-x    2 Hannu           0 May 30  2003 y/
drwxr-xr-x    3 Hannu           0 May 30  2003 z/
drwxr-xr-x    2 Hannu           0 May 30  2003 a/
drwxr-xr-x    2 Hannu           0 May 30  2003 a...a/
drwxr-xr-x    2 Hannu           0 May 30  2003 a..a/
drwxr-xr-x    2 Hannu           0 May 30  2003 a.a/

#FAT
$ source ~/TEST
mkdir: cannot create directory `x.': File exists
mkdir: cannot create directory `x..': File exists
mkdir: cannot create directory `x...': File exists
drwxr-xr-x    2 Hannu           0 May 30  2003 x/
mkdir: cannot create directory `y.': File exists
mkdir: cannot create directory `y..': File exists
mkdir: cannot create directory `y...': File exists
drwxr-xr-x    2 Hannu           0 May 30  2003 y/
drwxr-xr-x    3 Hannu           0 May 30  2003 z/
drwxr-xr-x    2 Hannu           0 May 30  2003 a/
drwxr-xr-x    2 Hannu           0 May 30  2003 a...a/
drwxr-xr-x    2 Hannu           0 May 30  2003 a..a/
drwxr-xr-x    2 Hannu           0 May 30  2003 a.a/


/Hannu E K Nevalainen, Mariefred, Sweden, 59~14'N, 17~12'E. >17~C avg/d now.
~ <=> degree

[1] Explorer <with upper case E> is a well known label of liquor in Sweden
;-)
--END OF MESSAGE--


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]