• BatmanAoD@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    2 hours ago

    For interactive use, tab-completion essentially makes this a non-issue, because shells add escaping in the appropriate places.

    For scripting, where spaces are harder to deal with, unfortunately there’s just not much you can do; your two options are basically to learn all of your particular shell’s patterns for dealing with whitespace in filenames, or only write scripts in something other than a POSIX shell.