this post was submitted on 30 Aug 2026
825 points (98.2% liked)

Programmer Humor

33104 readers
66 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 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] wonderingwanderer@sopuli.xyz 19 points 6 days ago (2 children)

I changed the $ in bash to § because fuck capitalism, keep your currency out of my free software

[–] 01189998819991197253 16 points 5 days ago

That's the currency in The Sims...

[–] dry_water@programming.dev 4 points 5 days ago (1 children)

How will you escape $var usage in scripts though :P

[–] wonderingwanderer@sopuli.xyz 3 points 5 days ago (2 children)

I've... never had to do that. What does it do?

[–] oozynozh@sh.itjust.works 2 points 5 days ago (1 children)

bash uses $ character to indicate variables. for example, you can see your current environment variables with the env command. then to see a specific variable echo $var to print its value.

scripts may call variables for a variety of reasons. one common case would be collecting information from the environment it's running under to determine whether it's compatible.

[–] wonderingwanderer@sopuli.xyz 1 points 5 days ago (1 children)

Oh. Oh yeah, I have done that. Like for adding the date to a file name when I dump a terminal output to into a text file, or adding hit counts to a custom notification after running a scan on a cron job.

I just use the character for that. It's fine, can't win them all, but it's better than having it at the beginning of every command line for seemingly no reason

[–] dry_water@programming.dev 1 points 4 days ago (1 children)
[–] wonderingwanderer@sopuli.xyz 2 points 4 days ago

Got it, yeah someone else already explained it and it turns out I have used it