this post was submitted on 20 Jan 2024
167 points (100.0% liked)

196

16216 readers
2258 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 7 months ago (2 children)

bash: let: =: syntax error: operand expected (error token is "=")

[–] [email protected] 9 points 7 months ago (1 children)

What programming language are you assuming this is? I'm thinking of it as JavaScript in my head and I don't think there would be any errors.

[–] [email protected] 2 points 7 months ago (2 children)

It's Swift, the Apple language.

[–] [email protected] 8 points 7 months ago

It's also perfectly valid JS.

[–] [email protected] 2 points 7 months ago
[–] [email protected] 1 points 7 months ago

Bash ain’t got no ternary does it?