this post was submitted on 22 Sep 2025
983 points (98.7% liked)

Programmer Humor

26673 readers
1655 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] callyral@pawb.social 20 points 1 week ago (2 children)

not sure why the default behavior is this:

file\ name\ with\ a\ bunch\ of\ spaces

instead of this:

"file name with a bunch of spaces"

but you can just press " before pressing tab to auto-complete, and it will use the 2nd form

[–] lord_ryvan@ttrpg.network 1 points 21 hours ago* (last edited 21 hours ago)

I mean, at least in Bash tools like ls do use quotes by default:

$ ls
 filename_without_space  'filename with space'

But yeah, tab expansion uses backslashes, sadly.

[–] killeronthecorner@lemmy.world 1 points 1 week ago (1 children)

Because quoting requires token expansion (e.g. ~ to /home/you). Escaping gives you a much shorter path in that case.

That said I'm with you, full quoted paths read better to me.

[–] lord_ryvan@ttrpg.network 1 points 21 hours ago

You can use variables in " like so: cd "$HOME/Desktop".

Maybe this helps?