public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: 1.3.4: Filenames ending with a dot
@ 2001-11-01 10:02 Fergus
  2001-11-11  8:26 ` Fergus
  0 siblings, 1 reply; 6+ messages in thread
From: Fergus @ 2001-11-01 10:02 UTC (permalink / raw)
  To: cygwin; +Cc: Fergus on Linux

It's not a bug, it's a Windows feature. Windows thinks a file named filename
is the same as the file named filename. is the same as the file named
filename.. ... etc.

Even less conveniently, it thinks the file named filename is the same as the
file named Filename is the same as the file named fileName ... etc.
Unfortunately you just have to live with it. (You can all it any one of
these, say fileName, and that's what will come up in response to dir under
Windows or ls under Cywin: so the case combination you choose is
"remembered", but all other combinations spelled the same way are now
unuseable in any distinguishable way.)

Fergus


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 1.3.4: Filenames ending with a dot
  2001-11-01 10:02 1.3.4: Filenames ending with a dot Fergus
@ 2001-11-11  8:26 ` Fergus
  0 siblings, 0 replies; 6+ messages in thread
From: Fergus @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin; +Cc: Fergus on Linux

It's not a bug, it's a Windows feature. Windows thinks a file named filename
is the same as the file named filename. is the same as the file named
filename.. ... etc.

Even less conveniently, it thinks the file named filename is the same as the
file named Filename is the same as the file named fileName ... etc.
Unfortunately you just have to live with it. (You can all it any one of
these, say fileName, and that's what will come up in response to dir under
Windows or ls under Cywin: so the case combination you choose is
"remembered", but all other combinations spelled the same way are now
unuseable in any distinguishable way.)

Fergus


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: 1.3.4: Filenames ending with a dot
  2001-11-01  9:23 ` Tony Arnold
@ 2001-11-11  8:26   ` Tony Arnold
  0 siblings, 0 replies; 6+ messages in thread
From: Tony Arnold @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin

Kandziora,

> there may be a problem with cygwin's handling of filenames: Files with any
> number of dots at the end are referred to be the same with no dots at the
> end at all. E.g.
>
> echo Hello >a
> echo World >a....

I think its a Windows problem. Try the same thing from a command prompt window
(aka DOS box) and you get the same result!

Regards,
Tony.
--
Tony Arnold, Deputy to the Head of COS Division, Manchester Computing,
University of Manchester, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E-mail: tony.arnold@man.ac.uk, Home: http://www.man.ac.uk/Tony.Arnold


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* 1.3.4: Filenames ending with a dot
  2001-11-01  8:11 Kandziora Jan
  2001-11-01  9:23 ` Tony Arnold
@ 2001-11-11  8:26 ` Kandziora Jan
  1 sibling, 0 replies; 6+ messages in thread
From: Kandziora Jan @ 2001-11-11  8:26 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Hello,

there may be a problem with cygwin's handling of filenames: Files with any
number of dots at the end are referred to be the same with no dots at the
end at all. E.g.

echo Hello >a
echo World >a....

results in a single file a, containing "World". The file can be accessed
with the name "a" and also "a." etc.
Moreover, one can mkdir a directory named "xyz", and use it with any number
of dots at the end.

mkdir xyz
cd xyz.....

pwd gives now "(...) /xyz....."
I wonder if you intended it to work like this or if it's a bug.

	Jan Kandziora


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: 1.3.4: Filenames ending with a dot
  2001-11-01  8:11 Kandziora Jan
@ 2001-11-01  9:23 ` Tony Arnold
  2001-11-11  8:26   ` Tony Arnold
  2001-11-11  8:26 ` Kandziora Jan
  1 sibling, 1 reply; 6+ messages in thread
From: Tony Arnold @ 2001-11-01  9:23 UTC (permalink / raw)
  To: cygwin

Kandziora,

> there may be a problem with cygwin's handling of filenames: Files with any
> number of dots at the end are referred to be the same with no dots at the
> end at all. E.g.
>
> echo Hello >a
> echo World >a....

I think its a Windows problem. Try the same thing from a command prompt window
(aka DOS box) and you get the same result!

Regards,
Tony.
--
Tony Arnold, Deputy to the Head of COS Division, Manchester Computing,
University of Manchester, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E-mail: tony.arnold@man.ac.uk, Home: http://www.man.ac.uk/Tony.Arnold


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* 1.3.4: Filenames ending with a dot
@ 2001-11-01  8:11 Kandziora Jan
  2001-11-01  9:23 ` Tony Arnold
  2001-11-11  8:26 ` Kandziora Jan
  0 siblings, 2 replies; 6+ messages in thread
From: Kandziora Jan @ 2001-11-01  8:11 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Hello,

there may be a problem with cygwin's handling of filenames: Files with any
number of dots at the end are referred to be the same with no dots at the
end at all. E.g.

echo Hello >a
echo World >a....

results in a single file a, containing "World". The file can be accessed
with the name "a" and also "a." etc.
Moreover, one can mkdir a directory named "xyz", and use it with any number
of dots at the end.

mkdir xyz
cd xyz.....

pwd gives now "(...) /xyz....."
I wonder if you intended it to work like this or if it's a bug.

	Jan Kandziora


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-11-12 13:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-01 10:02 1.3.4: Filenames ending with a dot Fergus
2001-11-11  8:26 ` Fergus
  -- strict thread matches above, loose matches on Subject: below --
2001-11-01  8:11 Kandziora Jan
2001-11-01  9:23 ` Tony Arnold
2001-11-11  8:26   ` Tony Arnold
2001-11-11  8:26 ` Kandziora Jan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).