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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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 formI mean, at least in Bash tools like
ls
do use quotes by default:But yeah, tab expansion uses backslashes, sadly.
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.
You can use variables in
"
like so:cd "$HOME/Desktop"
.Maybe this helps?