FluorineBalloon@programming.dev to Programmer Humor@programming.devEnglish · 3 days agoI like to live dangerouslymessage-squaremessage-square21linkfedilinkarrow-up1149arrow-down15file-text
arrow-up1144arrow-down1message-squareI like to live dangerouslyFluorineBalloon@programming.dev to Programmer Humor@programming.devEnglish · 3 days agomessage-square21linkfedilinkfile-text
minus-squareKubeRoot@discuss.tchncs.delinkfedilinkEnglisharrow-up2·1 day ago Another fun one is rm -fr .* if you want to delete dotfiles (hint: .. ). Does that actually match ..? I feel like that would’ve screwed me over, and like it would also mean just * would also expand to .. if it was the case.
minus-squareSupercrunchy@programming.devlinkfedilinkarrow-up2·19 hours agoI remember this biting me a long time ago, but I can’t reproduce it now. Turns out this was changed in 2022 in bash 5.2 (nice!) There’s the new ‘globskipdots’ that prevents this. https://unix.stackexchange.com/a/279448
Does that actually match
..? I feel like that would’ve screwed me over, and like it would also mean just*would also expand to..if it was the case.I remember this biting me a long time ago, but I can’t reproduce it now. Turns out this was changed in 2022 in bash 5.2 (nice!)
There’s the new ‘globskipdots’ that prevents this.
https://unix.stackexchange.com/a/279448