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

Programmer Humor

34821 readers
466 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] barubary@infosec.exchange 4 points 1 month ago

@Tangentism @Ephera Did you mean:

echo "${var:-empty}${var:+no it aint}"

?