cm0002@piefed.world to Programmer Humor@programming.devEnglish · 1 month agoI_fucking_hate_them_nowmedia.piefed.worldexternal-linkmessage-square146fedilinkarrow-up1998arrow-down113
arrow-up1985arrow-down1external-linkI_fucking_hate_them_nowmedia.piefed.worldcm0002@piefed.world to Programmer Humor@programming.devEnglish · 1 month agomessage-square146fedilink
minus-squarekaty ✨@piefed.blahaj.zonelinkfedilinkEnglisharrow-up21·1 month 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-up10·1 month 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 month agoOr you can also put a \ in front of the space
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·1 month agoIf you intend on using that with tab completions, you will have extra work to do.
minus-squarekamen@lemmy.worldlinkfedilinkarrow-up3·1 month agoSome shells put the path in quotes automatically as you attempt to complete anything with spaces in it.
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·1 month 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.