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

Bug #1156707 reported by Thorsten Glaser on 2013-03-18
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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'

tg@blau:~ $ mksh -c 'let() { print "lo${1}ol"; }; command let lol++; echo $lol'

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