Edit: Thank you guys for your insightful answers!

  • jsveiga
    link
    fedilink
    541 year ago

    Spaces are not the end of the world, but very annoying:

    On a bash command line, they make it harder to handle a list of files returned by a command as argument to another.

    On the command line (lin or win), they require escaping or quoting when used as arguments or script/executable names.

    On many programs, if you cut&paste the complete path to the file (for example in a network drive), you can click on the path and it will access the file, but spaces in filenames or directories breaks that (and it’s not bad programming, the program simply can’t guess where the link ends).

    When you mention the name of the file in a documentation or message, it may lead to misintepretation, and it’s just fugly:

    “You can find more information in the attached document file.pdf”.

    What is the name of the file? it can be “the attached document file.pdf”, “attached document file.pdf”, “document file.pdf” or “file.pdf”.

    Also when mentioned in a text, the file name may end up split in separated lines or even pages, and will more likely be subject to autocorrect.

    When copying the file name in a text, in most environments you can double-click to select the whole name, but it doesn’t work if it has spaces.

    Now, if you never ever type or copy/paste a file name, and only ever access files through a graphical interface, then it makes no difference.

    But then you start getting to comfy and if anything goes, why not non-ascii chars too? And that opens a different can of troubles.