513

Sudo rm -rf .

you are viewing a single comment's thread
view the rest of the comments
[-] db0@lemmy.dbzer0.com 5 points 4 days ago

Which shell interprets * as everything before extension?

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

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

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

Programmer Humor

30474 readers
2654 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