cm0002@piefed.world to Programmer Humor@programming.devEnglish · 2 days agoI_fucking_hate_them_nowmedia.piefed.worldimagemessage-square124fedilinkarrow-up1937arrow-down19
arrow-up1928arrow-down1imageI_fucking_hate_them_nowmedia.piefed.worldcm0002@piefed.world to Programmer Humor@programming.devEnglish · 2 days agomessage-square124fedilink
minus-squarekaty ✨@piefed.blahaj.zonelinkfedilinkEnglisharrow-up17·2 days agothe struggle between spaces in filenames look cute and oh fuck what’s the code to reference a space in a filename in terminal?
minus-squarekamen@lemmy.worldlinkfedilinkarrow-up8·2 days agoJust put the whole thing in quotes. You might have to escape extra sets of quotes, usually with a backslash.
minus-squareYellowTraveller@lemmy.ziplinkfedilinkarrow-up2·1 day agoOr you can also put a \ in front of the space
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·1 day agoIf you intend on using that with tab completions, you will have extra work to do.
minus-squarekamen@lemmy.worldlinkfedilinkarrow-up2·1 day agoSome shells put the path in quotes automatically as you attempt to complete anything with spaces in it.
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·1 day agoYeah, just need to set it up correctly.
the struggle between spaces in filenames look cute and oh fuck what’s the code to reference a space in a filename in terminal?
Just put the whole thing in quotes. You might have to escape extra sets of quotes, usually with a backslash.
Or you can also put a
\
in front of the spaceIf you intend on using that with tab completions, you will have extra work to do.
Some shells put the path in quotes automatically as you attempt to complete anything with spaces in it.
Yeah, just need to set it up correctly.