change “((” from “let” to “command let”

Reported by Thorsten Glaser on 2013-03-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mksh
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.

Thorsten Glaser (mirabilos) wrote :

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 ☹

Changed in mksh:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers