Comment by distant_hat

4 years ago

I had a guy in my team use forward slashes in filenames. Terrible idea, caused all sorts of weird issues.

But nice for testing. I spend a few month on Windows while doing a Django project and found a number of bugs no one else discovered because they used Mac or Linux.

How was this possible? None of the mainstream operating systems allow this.

  • via GUI in OS X.

    • Ah so that’s not really putting a slash in the name on disk - finder is just displaying the colon that way - it substitutes with a colon for historical reasons that have to do with pre OSX MacOS (but you can see if you create a file from a program or the command line with a colon in it, it will display as a slash in finder). It shouldn’t cause any problems on its own on the system - but the colon is troublesome if you have to interact with DOS/Windows lineage machines.

Did you mean backslashes? I don't know if any filesystem/OS supports forward slashes in filenames

  • OS X does in the GUI; they're isomorphic to ‘:’ at the UNIX level. (The Mac used ‘:’ as the directory separator.)

    • And a : in a file name at the GUI level gets turned into a dash! I just tried to name a text file "Foo/Bar 10:01.rtf" and it changed it to "Foo/Bar 10-01.rtf"!

      1 reply →