Closed cmeesters closed 7 years ago
Hello Christian,
are you sure that this is a bug? Does it produce an error message, or does it lead to some unexpected results?
I believe that omitting $
in arithmetic evaluation sections is a good practice: https://github.com/koalaman/shellcheck/wiki/SC2004
Nevertheless, I have reviewed the section and I have found some room for improvements, so thank you for reporting it even if it turns out that there is no bug to see 👍
Not sure, but it seemed not to loop to the value of _our_args (in my case 150). But I cannot reproduce this.
However, I find the $-notation more readable, since my eyes recognize a variable then. I also would argue that case 1 in the github-link (1+1*5=6) is the correct evaluation. But I see the point and consider it a very dangerous subtlety of bash.
As far as I can see, there are no further problems with this functionality, so I am closing this bug, feel free to reopen if it becomes relevant.
Hi,
but has to be
Tested in the online version as of today.
Best regards, Christian