this post was submitted on 02 Oct 2023
1293 points (96.7% liked)

Programmer Humor

24648 readers
315 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] MonkderZweite@feddit.ch 75 points 2 years ago (2 children)

You've come from Windows and have brought dangerous expectations.

[–] Honytawk@lemmy.zip 9 points 2 years ago (2 children)

Why would case sensitive path names be considered dangerous?

[–] colonial@lemmy.world 10 points 2 years ago* (last edited 2 years ago) (2 children)

I don't know about dangerous, but case-insensitive Unicode comparison is annoying, expensive and probably prone to footguns compared to a simple byte-for-byte equality check.

Obviously, it can be done, but I guess Linux devs don't consider it worthwhile.

(And yes, all modern filesystems support Unicode. Linux stores them as arbitrary bytes, Apple's HFS uses... some special bullshit, and Windows uses UTF-16.)

[–] lnee@lemm.ee 1 points 2 years ago (1 children)

so if linux stores file names as arbitrary bytes them could I modify a ext4 fs to include a / in a file name

[–] kattfisk@lemmy.dbzer0.com 1 points 2 years ago

If you did it would likely break something as it's one of only two characters not allowed in a file name (the other being null).

You can do a lot of funky stuff within the rules though, think about control characters, non-printing characters, newlines, homographs, emojis etc. and go forth and make your file system chaos!

[–] MenacingPerson@lemm.ee 1 points 2 years ago

Meanwhile fishshell:

[–] naught@sh.itjust.works 0 points 2 years ago (1 children)

MacOS has a case insensitive file system. It causes me untold grief

[–] sysadmin420@lemmy.world 0 points 2 years ago* (last edited 2 years ago) (1 children)

Is a 40 year old it guy who love linux, wat

Macos is case insensitive?!

[–] sudo@lemmy.today 0 points 2 years ago (1 children)

OSX offers both case sensitive and case insensitive filesystems

[–] naught@sh.itjust.works 0 points 2 years ago (1 children)

Defaults to insensitive and if you want to change it you have to reformat 🥲

[–] example@reddthat.com 1 points 2 years ago

I've been using case insensitive fs on macOS for years and the only software having issues with this is onedrive.

can't say i'm surprised.