You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added some failing test cases for dynamic assignment here inspired by ble.sh:
While testing ble.sh, I noticed that Oil does not produce syntax errors for ((${prefix}var)), but it actually fails to evaluate at runtime. (Or does this construct ((${prefix}var)) have a different usage in Oil?) The added test cases 8fdb25d do not contain this kind of the case where the dynamic variables are referenced as rvalue.
Yes this is intentional, same issue as #648 and #645. Arithmetic is never recursively evaluated, both because it's confusing and because of the security issue.
This is sort of philosophically related, and has the Fedora security links at the end too:
While testing ble.sh, I noticed that Oil does not produce syntax errors for
((${prefix}var))
, but it actually fails to evaluate at runtime. (Or does this construct((${prefix}var))
have a different usage in Oil?) The added test cases 8fdb25d do not contain this kind of the case where the dynamic variables are referenced as rvalue.The text was updated successfully, but these errors were encountered: