• atx_aquarian@lemmy.world
    link
    fedilink
    arrow-up
    72
    arrow-down
    1
    ·
    edit-2
    1 day ago

    Fun fact, though: Linux is the only case-sensitive one.

    Edit: I feel silly for forgetting that it’s all about the choice of FS. If anyone needs anything from me, I’ll be in the corner, coloring.

    • Localhorst86@feddit.org
      link
      fedilink
      arrow-up
      58
      ·
      1 day ago

      From a technical standpoint, the windows NTFS filesystem is designed inherently case sensitive, just windows doesn’t allow creating case sensitive files.

      Connecting an NTFS drive to linux, you can create two separate files readme.txt and Readme.txt.

      Using windows, you can see both files in the filesystem, but chances are most (if not all) software will struggle accessing both files, opening readme.txt might instead open Readme.txt or vice versa.

        • The_Decryptor@aussie.zone
          link
          fedilink
          English
          arrow-up
          13
          ·
          edit-2
          1 day ago

          NTFS was designed back in the mid 90s, when the plan was to have the single NT kernel with different subsystems on top of it, some of those layers (i.e. POSIX) needed case sensitivity while others (Win32 and OS/2) didn’t.

          It only looks odd because the sole remaining subsystem in use (Win32) barely makes use of any of the kernel features, like they’re only just now enabling long file paths.

      • pixelscript@lemm.ee
        link
        fedilink
        English
        arrow-up
        14
        ·
        1 day ago

        For a few years now, Windows has had the capability of marking certain directories as case-sensitive. So you can have a mixed-case-sensitivity filesystem experience now. Yeah. :/

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        You’re correct. I once was trying to rename a file in Windows in a git repository that had a wrong capitalization. It was tricky.

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      14
      ·
      1 day ago

      I once ran into a bug in an Arduino program where it wouldn’t compile. The author blamed my “broken environment”. Turned out, he had included “arduino.h” instead of the correct “Arduino.h”.

      • paperplane@lemmy.world
        link
        fedilink
        arrow-up
        15
        ·
        1 day ago

        When case insensitivity is the default I always wonder how many apps unknowingly rely on that due to typos somewhere. I encountered this once while porting a Windows/macOS app to Linux that someone imported a module with the wrong case and nobody noticed

        • Orygin@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          21 minutes ago

          The source engine does not handle case sensitivity when loading assets from disk. On windows it’s not an issue but on Linux it will silently fail to load assets if the case doesn’t match. I lost so many hours trying to fix some weapon animation that had 0 seconds run time when porting a mod dedicated server to Linux.

      • Honytawk@lemmy.zip
        link
        fedilink
        English
        arrow-up
        3
        ·
        4 hours ago

        But why? What is the point?

        That you can give 2 different files the same name? Because that would confuse the hell out of every regular user. Especially if you work on a network share and have an entire directory full of same named files because everyone and their grandma throws their files in there.

        It is almost as bad as Case Sensitive Usernames and email.

      • optional@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        4 hours ago

        It’s a big difference whether a folder is named PetersHits or PeterShits. So what should I expect when opening a folder called petershits? Pictures of Peter on the potty or some great songs?

      • asdfasdfasdf@lemmy.world
        link
        fedilink
        arrow-up
        14
        arrow-down
        2
        ·
        1 day ago

        Hard disagree. I don’t understand why anyone would want case insensitive.

        Am I the only one who doesn’t go around mindlessly capitalizing letters? Do people find it too difficult to capitalize things?

        Do you want case insensitive passwords too?

        If I type X I mean X and only X. Uppercase letters are different letters, just like X and Y are different letters.

      • SaharaMaleikuhm@feddit.org
        link
        fedilink
        arrow-up
        27
        arrow-down
        3
        ·
        1 day ago

        Case-insensitive filesystems are for maniacs. They are only causing trouble. Ever had two folders with the same name but different capitalization in windows? You see both, but whichever you click it will always open the same one, while the other can’t be accessed. Psychopath behavior.

      • Trainguyrom@reddthat.com
        link
        fedilink
        English
        arrow-up
        12
        arrow-down
        1
        ·
        1 day ago

        Makes changing the case of a file/folder a lot easier though. Windows you have to rename it to something else then rename it again just to change case but Linux you can just…rename it. It’s a small thing but it’s something