change “((” from “let” to “command let”
Bug #1156707 reported by
Thorsten Glaser
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mksh |
Fix Released
|
Medium
|
Unassigned |
Bug Description
01:57 < ormaaj> $ mksh -c 'let() { print "lo${1}ol"; }; ((lol))'
01:57 < ormaaj> lololol
tg@blau:~ $ mksh -c 'let() { print "lo${1}ol"; }; let lol++; echo $lol'
lolol++ol
tg@blau:~ $ mksh -c 'let() { print "lo${1}ol"; }; command let lol++; echo $lol'
1
Similarily for all other things that are internally mapped to something that can be overridden by !FKSH functions.
To post a comment you must log in.
Fixed in R45 by changing to “let]” instead, because ‘]’ is not valid in mksh function names (nor POSIX), and “command” is (though for admittedly good reasons) no POSIX special built-in utility, and regular builtins come after functions always ☹