this post was submitted on 16 Mar 2026
234 points (96.8% liked)

Programmer Humor

30403 readers
2182 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
 

Sudo rm -rf .

you are viewing a single comment's thread
view the rest of the comments
[–] prettybunnys@piefed.social 2 points 13 hours ago (1 children)

well, depending on your shell

[–] db0@lemmy.dbzer0.com 2 points 11 hours ago (1 children)

Which shell interprets * as everything before extension?

[–] prettybunnys@piefed.social 5 points 10 hours ago (1 children)

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

[–] db0@lemmy.dbzer0.com 1 points 7 hours ago (1 children)
[–] prettybunnys@piefed.social 2 points 2 hours ago* (last edited 1 hour 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