• Socsa@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    1
    ·
    7 months ago

    You should know that in most filesystems that are not NTFS, spaces in file names are not well supported.

    • Pyrozo007@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      3
      ·
      7 months ago

      Can you give examples? Linux and Mac have no real issues as far as I’m aware. Nor exFAT or FAT32

      • bam13302@ttrpg.network
        link
        fedilink
        English
        arrow-up
        13
        arrow-down
        3
        ·
        edit-2
        7 months ago

        The problem is really that space is an argument separator, so to safely handle filenames with spaces you need to handle them special, either by escaping them, quoting the entire thing. This means that the filename with spaces can’t be just copy pasted wherever you want, you have handle them special. It adds complications that are resolved by just using a separator that isnt used for other things, like underscore, or dash. Dot I also don’t like as much as it’s used as a separator for extensions, but that’s a far easier problem to handle by just ignoring all but the last dot, leaving only one really bad edge case (a file that does not have an extension, that uses dot separator in its filename having the filesystem imply a wrong extension.

        • ramjambamalam@lemmy.ca
          link
          fedilink
          English
          arrow-up
          13
          ·
          7 months ago

          That’s a problem with the shell though, not the filesystem. It doesn’t matter which files filesystem you’re using; most interactive shells use spaces as token separators and therefore spaces in filenames need to be enclosed in quotes or escaped.