this post was submitted on 22 Sep 2025
966 points (98.9% liked)

Programmer Humor

26551 readers
1715 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
[–] kamen@lemmy.world 10 points 2 days ago (2 children)

Just put the whole thing in quotes. You might have to escape extra sets of quotes, usually with a backslash.

[–] YellowTraveller@lemmy.zip 3 points 2 days ago

Or you can also put a \ in front of the space

[–] ulterno@programming.dev 0 points 2 days ago (1 children)

If you intend on using that with tab completions, you will have extra work to do.

[–] kamen@lemmy.world 3 points 2 days ago (1 children)

Some shells put the path in quotes automatically as you attempt to complete anything with spaces in it.

[–] ulterno@programming.dev 0 points 2 days ago

Yeah, just need to set it up correctly.