FluorineBalloon@programming.dev to Programmer Humor@programming.devEnglish · 14 days agoI like to live dangerouslymessage-squaremessage-square23linkfedilinkarrow-up1156arrow-down15file-text
arrow-up1151arrow-down1message-squareI like to live dangerouslyFluorineBalloon@programming.dev to Programmer Humor@programming.devEnglish · 14 days agomessage-square23linkfedilinkfile-text
minus-squareKubeRoot@discuss.tchncs.delinkfedilinkEnglisharrow-up2·12 days 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·11 days 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