Re:Test, [, and [[ (2020)
by kqr on Thursday November 23, 2023 @06:11AM
(#38391565)
I'm going to assume that if one is using [ rather than [[ then one will also want to use expr rather than $(()).
[ Parent
| on HN ]
Arithmetic expansion is a feature of all POSIX compliant shells, which furthermore advises against using `expr`. The latter is only needed for non-compliant shells like some legacy implementations of the Bourne shell.
Oh, I did not know that! Thanks.