emersion / mrsh

A minimal POSIX shell
MIT License
489 stars 35 forks source link

`echo $(( ( 1 + 2 ) ))` cause syntax error: unmatched closing parenthesis in arithmetic expression #161

Closed ko1nksm closed 3 years ago

ko1nksm commented 4 years ago
$ mrsh -c 'echo $(( (1+2) ))'
3
$ mrsh -c 'echo $(( ( 1+2 ) ))'
mrsh:1:16: syntax error: unmatched closing parenthesis in arithmetic expression