cm0002@piefed.world to Programmer Humor@programming.devEnglish · 1 year agoI_fucking_hate_them_nowmedia.piefed.worldimagemessage-square128fedilinkarrow-up1709arrow-down110
arrow-up1699arrow-down1imageI_fucking_hate_them_nowmedia.piefed.worldcm0002@piefed.world to Programmer Humor@programming.devEnglish · 1 year agomessage-square128fedilink
minus-squarekaty ✨@piefed.blahaj.zonelinkfedilinkEnglisharrow-up11·1 year 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-up6·1 year agoJust put the whole thing in quotes. You might have to escape extra sets of quotes, usually with a backslash.
minus-squareYellowTraveller@lemmy.ziplinkfedilinkarrow-up3arrow-down1·1 year agoOr you can also put a \ in front of the space
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·1 year agoIf you intend on using that with tab completions, you will have extra work to do.
minus-squarekamen@lemmy.worldlinkfedilinkarrow-up3·1 year agoSome shells put the path in quotes automatically as you attempt to complete anything with spaces in it.
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·1 year 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.