this post was submitted on 05 Mar 2025
1571 points (99.0% liked)

Programmer Humor

21027 readers
3179 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] Irelephant@lemm.ee 7 points 1 day ago (1 children)

It seems like it does stuff differently for the sake of it being different.

[–] _stranger_@lemmy.world 24 points 1 day ago (3 children)

It's more like bash did it one way and everyone who came after decided that was terrible and should be done a different way (for good reason).

Looking right at you -eq and your weird ass syntax

if [[ $x -eq $y ]]

[–] Irelephant@lemm.ee 13 points 1 day ago* (last edited 1 day ago)

That was the point where I closed the bash tutorial I was on, and decided to just use python and subprocess.run()

[–] victorz@lemmy.world 8 points 1 day ago

-eq

Yeah, like infix, so between operands, but dashed like a flag so should come before arguments. Very odd.

[–] Appoxo@lemmy.dbzer0.com 5 points 1 day ago

You better not look at powershell in that case :p