News for hackers. Stuff that matters.
Re:Technical reasons to choose FreeBSD over GNU/Linux by GordonS on Monday April 13, 2020 @08:19AM (#22855170)
> No, don't open "Christmas Wishlist.doc", that's from last year. The new one is called "Christmas wishlist.doc"

I'm veering a bit OT here, but is anyone aware of the justification for having a case-sensitive file system? It's something that's always annoyed me about Linux and *BSD, but I wonder if there is any real benefit I've just never grasped?

Re:Technical reasons to choose FreeBSD over GNU/Linux by cesarb on Monday April 13, 2020 @08:40AM (#22855298)
Linux (and probably also the BSDs) goes beyond "case-sensitive": filenames are a sequence of bytes, giving special meaning only to the NUL byte (as the terminator) and the forward slash byte (as the path separator), and to the "", ".", and ".." filenames. From an implementation point of view, it's much simpler, and makes it easier to have high-performance code.

Case insensitivity adds a whole set of complications. The operating system has to either canonicalize all filenames, or preserve them (case preserving) but have an equivalence class of filenames. Canonicalization can be problematic (like ß -> SS, or perhaps ß -> ẞ? And let's not think of the dotless i), and to make things worse, can change with newer versions of the Unicode standard (as new characters and their case mappings are added); at least NTFS works around that by storing a case mapping table in the filesystem metadata, so a filesystem created by a newer Windows release can have a different case mapping (and you can have different case mappings for each filesystem in the same machine). It can also confuse software: even with a case preserving system, a program can open a file named FOO for writing, and not find it later when listing the directory (because it already existed as lowercase "foo"). This kind of thing has led to security issues in the past.

Re:Technical reasons to choose FreeBSD over GNU/Linux by goodcanadian on Monday April 13, 2020 @06:38PM (#22860961)
I've always considered case sensitive file names to be a feature, not a bug. I am personally annoyed by filenames not being case sensitive in Windows. I guess that's just how my brain works. To each their own, I guess.
Re:Technical reasons to choose FreeBSD over GNU/Linux by arexxbifs on Monday April 13, 2020 @08:28AM (#22855230)
Don’t know if it’s the real reason, but it’s bound to save a few cycles when doing string comparisons. I guess that would’ve made a difference in a multi-user system on a PDP-11.
Re:Technical reasons to choose FreeBSD over GNU/Linux by teddyh on Monday April 13, 2020 @10:18AM (#22856029)
The very concept of “case” is locale-dependent. To embed locale-dependent code in the file system is bad design.