Uninitialised var as simple arith expr causes silent exit
Thank you. I'm investigating.
Adding any operator makes it work as expected
except the assignment operator
$ yash -c 'echo $((foo=bar)) && echo ok || echo oops' $ echo $? 2
With "foo" and "bar" unset, this should print "0" followed by "ok" as other shells do.
Fixed in r3777
Using an uninitialised variable in an arithmetic expression that contains only that variable causes yash to exit with exit status 2 and without any error message.
Adding any operator makes it work as expected: