git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: file name case-sensitivity issues

From
Junio C Hamano <junkio@cox.net>
Date
May 23, 2006, 22:57 UTC
Message-ID
<7v7j4c4af3.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060523210615.GB5869@steel.home>
fork0@t-online.de (Alex Riesen) writes:
> Very simple to reproduce on FAT and NTFS, and under Windows, as usual,
> when a problem is especially annoying. I seem to have no chance to
> get my hands on this myself, so I at least let everyone know about the
> problem.

Isn't it like complaining that the following sequence loses your precious file on a case-challenged filesystem?

	$ echo precious contents >foo
        $ rm -f FOO

Is it a problem for the user? Certainly yes. You lost your precious file.

Is it a bug in the operating system and/or the filesystem? Probably not; it is doing what it is asked to do -- its definition of what string matches what file on the filesystem is dubious, but that is how it sees the world and you accept that view while you are on such a system. Is it a bug in "rm"? Probably not; it is doing what it is asked to do within the context that you gave it.

I'd call that a PEBCAK.

If you _know_ you are working on a case challenged filesystem, I think the best thing you can do is not to work on a project that has files in different cases on such a filesystem.

Previous: Ben CliffordNext: Alex Riesen
Message 7 of 10 in “file name case-sensitivity issues”
  1. Alex RiesenMay 23, 2006
  2. Linus TorvaldsMay 23, 2006
  3. Linus TorvaldsMay 23, 2006
  4. Ben CliffordMay 23, 2006
  5. Junio C HamanoMay 24, 2006
  6. Ben CliffordMay 24, 2006
  7. Junio C HamanoMay 23, 2006
  8. Alex RiesenMay 25, 2006
  9. Junio C HamanoMay 25, 2006
  10. Christopher FaylorMay 26, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.