Y
Hacker News
new
|
ask
|
show
|
jobs
by
throwaway20371
1694 days ago
> if { = 0 == 1 } then {
What in the heck is that first '=' for?
3 comments
bccdee
1694 days ago
I assume `=` is the equivalent of `test` — it's a function invocation, and `[0, ==, 1]` are its arguments.
link
hnlmorg
1694 days ago
Everything is a function. So = is a function name for logical and mathematical operations.
https://murex.rocks/docs/commands/equ.html
link
tzot
1694 days ago
A renamed `expr` of the shell.
link