calango@programming.dev to Programmer Humor@programming.dev · 4 days agoWho hasn't typed a risky command? Throw the first stone!programming.devimagemessage-square29fedilinkarrow-up1523arrow-down113file-text
arrow-up1510arrow-down1imageWho hasn't typed a risky command? Throw the first stone!programming.devcalango@programming.dev to Programmer Humor@programming.dev · 4 days agomessage-square29fedilinkfile-text
minus-squaredb0@lemmy.dbzer0.comlinkfedilinkarrow-up60·4 days agoDOS user detected! In linux you don’t need *.*, you can just use *
minus-squarecalango@programming.devOPlinkfedilinkarrow-up12·4 days agoGod programmed the universe into DOS
minus-squareStupidmanager@lemmy.worldlinkfedilinkEnglisharrow-up5·edit-24 days agoGoing to point out that not only is *.* unnecessary, but he’s in ~ (home) so assuming it even worked he just deleted his home.
minus-squareprettybunnys@piefed.sociallinkfedilinkEnglisharrow-up4·4 days agowell, depending on your shell
minus-squaredb0@lemmy.dbzer0.comlinkfedilinkarrow-up5·4 days agoWhich shell interprets * as everything before extension?
minus-squareprettybunnys@piefed.sociallinkfedilinkEnglisharrow-up7·4 days agoWell I’m not necessarily commenting on the *.* but * will skip .files in bash.
minus-squareprettybunnys@piefed.sociallinkfedilinkEnglisharrow-up2·edit-24 days ago*.* will likely expect a file named *. and then delete any file globbed, but still leave dotfiles. At least in bash. In my shell it would just error at me and then I’d be mad fish doesn’t work like bash in this specific case
DOS user detected! In linux you don’t need
*.*, you can just use*God programmed the universe into DOS
This explains a lot.
Going to point out that not only is *.* unnecessary, but he’s in ~ (home) so assuming it even worked he just deleted his home.
Well, guess that’s it for heaven
well, depending on your shell
Which shell interprets * as everything before extension?
Well I’m not necessarily commenting on the
*.*but*will skip .files in bash.I think *. * also skips them
*.*will likely expect a file named*.and then delete any file globbed, but still leave dotfiles. At least in bash.In my shell it would just error at me and then I’d be mad
fishdoesn’t work likebashin this specific case