460
you are viewing a single comment's thread
view the rest of the comments
[-] barubary@infosec.exchange 5 points 1 week ago

@tetris11 @Aedis More like:

isEven() {    case "$1" in        *[02468]) return 0;;        *) return 1;;    esac;}

(If all the line breaks are gone from this code snippet, blame Lemmy. It looks fine here.)

this post was submitted on 15 Jul 2025
460 points (94.7% liked)

Programmer Humor

37310 readers
43 users here now

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

Rules:

founded 6 years ago
MODERATORS