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

Programmer Humor

26673 readers
1812 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
[โ€“] 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 23 hours ago

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

Maybe this helps?