[TxMt] Beware of creating files with names that differ only in case!

Charilaos Skiadas cskiadas at gmail.com
Thu Aug 16 18:37:32 UTC 2007


On Aug 16, 2007, at 2:28 PM, Chris Fonnesbeck wrote:

> I discovered a little quirk of TextMate this afternoon that cost me  
> several
> hours of work.
>
> I had a file within a project called "distributions.py", and wanted  
> to make
>  a new file called "Distributions.py" to experiment with a few things.
> When I created this file, it generated a new file, but rather than  
> the usual
> template, it contained the contents of distributions.py. Fine, I  
> thought,
> I was going to copy some of the contents of "distributions.py" over
> anyway. I went ahead and heavily edited Distributions.py, including
> deleting much of the original contents.
>
> I was shocked to find that when I went back to the original file, all
> the editing that I had done in the new file was mirrored in the  
> second!
> I had done enough editing that I was unable to undo changes to get  
> most
> of it back. Several hours of work -- gone.
>
> Why on earth did creating a *new* file in a project apparently just
> create some sort of symbolic link to an existing file?? 2 different  
> files
> "Distributions.py" and "distributions.py" both appeared in the  
> project list,
> and both had their own tabs. Does this have something to do with  
> having
> files that differ only in case? Very frustrating.

I can confirm this behavior, and I would definitely consider it a  
bug. You might want to add your comments to this ticket, which seems  
to be relevant:

http://macromates.com/ticket/show?ticket_id=00157F1A

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College







More information about the textmate mailing list