this post was submitted on 05 Mar 2025
186 points (99.5% liked)
Programmer Humor
34381 readers
404 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Huh, seems you're right. I was under the impression this wouldn't work in dash but apparently that's wrong.
Yep! The functionality for performing arithmetic expressions this way is called “arithmetic expansion”.
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_06_04