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

Bug #1156707 reported by Thorsten Glaser
6
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.

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.