In Bash, I use a string where an arithmetic expression is expected:
$ (( hello )) $ echo $? 1 $ echo $(( hello )) 0 $ let aaa=hello $ echo $? 1 $ echo $aaa 0
There is no error reported. So is a string an arithmetic expression? If yes, is the value of a string always 0?
My question comes from a comment Why does command not work with a command beginning with assignment?