KillDash9@programming.dev to Programmer Humor@programming.dev · 6 個月前Who hasn't typed a risky command? Throw the first stone!programming.devimagemessage-square36linkfedilinkarrow-up1530arrow-down114file-text
arrow-up1516arrow-down1imageWho hasn't typed a risky command? Throw the first stone!programming.devKillDash9@programming.dev to Programmer Humor@programming.dev · 6 個月前message-square36linkfedilinkfile-text
minus-squaredb0@lemmy.dbzer0.comlinkfedilinkarrow-up5·6 個月前Which shell interprets * as everything before extension?
minus-squareprettybunnys@piefed.sociallinkfedilinkEnglisharrow-up7·6 個月前Well I’m not necessarily commenting on the *.* but * will skip .files in bash.
minus-squareprettybunnys@piefed.sociallinkfedilinkEnglisharrow-up2·edit-26 個月前*.* 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
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