this post was submitted on 10 Jul 2024
645 points (94.0% liked)

Programmer Humor

19623 readers
507 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 79 points 4 months ago (3 children)
sudo rm /heart/arteries/**/clot
[–] [email protected] 66 points 4 months ago (1 children)

Very important to not hit enter before clot.

[–] [email protected] 30 points 4 months ago

That's why you have backups.

[–] [email protected] 13 points 4 months ago (1 children)
[–] [email protected] 10 points 4 months ago (1 children)

I feel like if your body follows the Unix filesystem structure, you have a real problem.

[–] [email protected] 6 points 4 months ago (2 children)

Can I get one of them immutable bodies?

[–] [email protected] 4 points 4 months ago

You are now a cygote

[–] [email protected] 1 points 4 months ago

you wish to assimilate into the borg?

[–] [email protected] 7 points 4 months ago (4 children)

Please forgive my ignorance. What does ** do?

[–] [email protected] 9 points 4 months ago (2 children)

Acts as a wildcard for any directories that exist between arteries and clot.

[–] [email protected] 1 points 4 months ago* (last edited 4 months ago)

But only in Bash and if settings match. It's only reliable on your own shell, don't use it in scripts.

[–] [email protected] 4 points 4 months ago* (last edited 4 months ago)

It's a glob pattern (edit: tried to find a source that actually showed ** in use).

[–] [email protected] 2 points 4 months ago* (last edited 4 months ago)

Had to look this up as well. Its not rm specific:

* is a simple, non-recursive wildcard representing zero or more characters which you can use for paths and file names. ** is a recursive wildcard that can only be used with paths, not file names.

More here.