Commit 3856f1b
Fix incompatibility with Lua 5.5
Under Lua 5.5, the control variable in `for` loops is declared `<const>`, which means attempting to assign to it causes an error. This results in a completely broken environment with an empty PATH. Per the reference manual, the correct fix is to define a local variable inside the loop with the same name as the control variable.1 parent 3368b98 commit 3856f1b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
0 commit comments