• psycotica0@lemmy.ca
    link
    fedilink
    arrow-up
    6
    ·
    5 hours ago

    Since Linux 5.2 you can actually make the (ext4) filesystem case-insensitive, per directory. If you’re into that kind of thing.

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    21
    ·
    8 hours ago

    bind 'set completion-ignore-case on' might be your friend in Bash. It won’t help in scripts and GUIs though, so you’d still have to deal with that.

    There are ways to write functions that pick the right option intelligently, but that’s asking for trouble. One day something will create a better match for your guess and then things will go wrong, e.g. your script intelligently turns downloads into Downloads but then something actually goes and creates downloads. Your script chooses the impostor because it’s a better match. Oops.

    And then there’s always ln -s Downloads downloads. That might be enough to confuse that helpful thing that would otherwise create downloads. It’s already there, ready for use. And it works in custom scripts and things too. Until you move your script to a different user or machine, anyway.