▲ 484 ▼ Who hasn't typed a risky command? Throw the first stone! (programming.dev) submitted 7 months ago by calango@programming.dev to c/programmer_humor@programming.dev 35 comments fedilink hide all child comments Sudo rm -rf .
[–] db0@lemmy.dbzer0.com 5 points 7 months ago (3 children) Which shell interprets * as everything before extension? permalink fedilink source parent hideshow 3 child comments replies: [–] prettybunnys@piefed.social 7 points 7 months ago (2 children) Well I’m not necessarily commenting on the *.* but * will skip .files in bash. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 4 points 7 months ago (1 child) I think *. * also skips them permalink fedilink source parent hideshow 1 child comment replies: [–] prettybunnys@piefed.social 2 points 7 months ago* (last edited 7 months 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 permalink fedilink source parent
[–] prettybunnys@piefed.social 7 points 7 months ago (2 children) Well I’m not necessarily commenting on the *.* but * will skip .files in bash. permalink fedilink source parent hideshow 2 child comments replies: [–] db0@lemmy.dbzer0.com 4 points 7 months ago (1 child) I think *. * also skips them permalink fedilink source parent hideshow 1 child comment replies: [–] prettybunnys@piefed.social 2 points 7 months ago* (last edited 7 months 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 permalink fedilink source parent
[–] db0@lemmy.dbzer0.com 4 points 7 months ago (1 child) I think *. * also skips them permalink fedilink source parent hideshow 1 child comment replies: [–] prettybunnys@piefed.social 2 points 7 months ago* (last edited 7 months 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 permalink fedilink source parent
[–] prettybunnys@piefed.social 2 points 7 months ago* (last edited 7 months 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 permalink fedilink source parent