Why does $((true == false)) evaluate to 1 in bash?

后端 未结 3 1762
广开言路
广开言路 2021-02-03 17:28

Why does bash have the following behavior?

echo $((true == false))
1

I would have thought that this wou

3条回答
提交回复
热议问题