calango@programming.dev to Programmer Humor@programming.dev · 15 days agoWho hasn't typed a risky command? Throw the first stone!programming.devimagemessage-square31linkfedilinkarrow-up1510arrow-down112file-text
arrow-up1498arrow-down1imageWho hasn't typed a risky command? Throw the first stone!programming.devcalango@programming.dev to Programmer Humor@programming.dev · 15 days agomessage-square31linkfedilinkfile-text
minus-squaredb0@lemmy.dbzer0.comlinkfedilinkarrow-up58·15 days agoDOS user detected! In linux you don’t need *.*, you can just use *
minus-squarecalango@programming.devOPlinkfedilinkarrow-up11·15 days agoGod programmed the universe into DOS
minus-squareprettybunnys@piefed.sociallinkfedilinkEnglisharrow-up4·15 days agowell, depending on your shell
minus-squaredb0@lemmy.dbzer0.comlinkfedilinkarrow-up5·15 days agoWhich shell interprets * as everything before extension?
minus-squareprettybunnys@piefed.sociallinkfedilinkEnglisharrow-up7·15 days agoWell I’m not necessarily commenting on the *.* but * will skip .files in bash.
minus-squareprettybunnys@piefed.sociallinkfedilinkEnglisharrow-up2·edit-214 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
minus-squareStupidmanager@lemmy.worldlinkfedilinkEnglisharrow-up4·edit-215 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-squarethe rizzler@lemmygrad.mllinkfedilinkarrow-up2·15 days agomaybe his $PS1 just happens to have a tilde in it
minus-squareLena@gregtech.eulinkfedilinkarrow-up1·15 days agoMaybe he wanted to remove only files with a dot in the name
DOS user detected! In linux you don’t need
*.*, you can just use*God programmed the universe into DOS
This explains a lot.
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 caseGoing to point out that not only is *.* unnecessary, but he’s in ~ (home) so assuming it even worked he just deleted his home.
maybe his $PS1 just happens to have a tilde in it
Well, guess that’s it for heaven
Maybe he wanted to remove only files with a dot in the name