this post was submitted on 05 Mar 2025
1641 points (98.9% liked)

Programmer Humor

25040 readers
1205 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
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] T156@lemmy.world 8 points 4 months ago (1 children)

Bash substitution is regex-level wizardry.

[–] SpaceNoodle@lemmy.world 7 points 4 months ago (3 children)

Slapping a $ before an environment variable name is "wizardry?"

[–] T156@lemmy.world 5 points 4 months ago (2 children)

Not quite that, but more the ${variable##.*} sort of thing.

[–] SpaceNoodle@lemmy.world 4 points 4 months ago

Right, so that's just the string manipulation functions. I already posted a link to the bible for this following a different reply to the same comment to which you replied.

load more comments (1 replies)
[–] pelya@lemmy.world 4 points 4 months ago (1 children)

Nope, the whole ${variable/regex/replacement} syntax

[–] SpaceNoodle@lemmy.world 8 points 4 months ago (2 children)
load more comments (2 replies)
[–] SwordInStone@lemmy.world 4 points 4 months ago

interns be interning

[–] Irelephant@lemm.ee 7 points 4 months ago (4 children)

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

load more comments (4 replies)
[–] Aceticon@lemmy.dbzer0.com 7 points 4 months ago

When I was finishing of my degree at Uni I actually spent a couple of months as an auxiliary teacher giving professional training in Unix, which included teaching people shell script.

Nowadays (granted, almost 3 decades later), I remember almost nothing of shell scripting, even though I've stayed on the Technical Career Track doing mostly Programming since.

So that joke is very much me irl.

[–] jkercher@programming.dev 7 points 4 months ago

Meh. I had a bash job for 6 years. I couldn't forget it if I wanted to. I imagine most people don't use it enough for it to stick. You get good enough at it, and there's no need to reach for python.

[–] synae@lemmy.sdf.org 4 points 4 months ago

Incredibly true for me these days. But don't fret, shellcheck and tldp.org is all you need. And maybe that one stackoverflow answer about how to get the running script's directory

[–] LovableSidekick@lemmy.world 4 points 4 months ago* (last edited 4 months ago)

The older you get, the more things are like programming in bash.

load more comments
view more: ‹ prev next ›