cm0002@piefed.world to Programmer Humor@programming.devEnglish · 9 days agoI_fucking_hate_them_nowmedia.piefed.worldimagemessage-square143linkfedilinkarrow-up1996arrow-down113
arrow-up1983arrow-down1imageI_fucking_hate_them_nowmedia.piefed.worldcm0002@piefed.world to Programmer Humor@programming.devEnglish · 9 days agomessage-square143linkfedilink
minus-squarecally [he/they]@pawb.sociallinkfedilinkEnglisharrow-up20·8 days agonot 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
minus-squareThe Ramen Dutchman@ttrpg.networklinkfedilinkEnglisharrow-up1·edit-23 hours agoI 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.
minus-squarekilleronthecorner@lemmy.worldlinkfedilinkEnglisharrow-up1·8 days agoBecause 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.
minus-squareThe Ramen Dutchman@ttrpg.networklinkfedilinkEnglisharrow-up1·3 hours agoYou can use variables in " like so: cd "$HOME/Desktop". Maybe this helps?
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:$ ls filename_without_space 'filename with space'
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?