515

Sudo rm -rf .

you are viewing a single comment's thread
view the rest of the comments
[-] prettybunnys@piefed.social 4 points 5 days ago

well, depending on your shell

[-] db0@lemmy.dbzer0.com 5 points 5 days ago

Which shell interprets * as everything before extension?

[-] prettybunnys@piefed.social 7 points 5 days ago

Well I’m not necessarily commenting on the *.* but * will skip .files in bash.

[-] db0@lemmy.dbzer0.com 4 points 5 days ago
[-] prettybunnys@piefed.social 2 points 4 days ago* (last edited 4 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

this post was submitted on 16 Mar 2026
515 points (97.6% liked)

Programmer Humor

30494 readers
3277 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS