mfile2sci badly converts the colon : into mtlb(:) (Regression)
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
a = rand(3,5);
a(1,:) = 6
Scilab 5.5: mfile2sci() yields
a = rand(3,5);
a(1,:) = 6
Scilab 6.0: mfile2sci() yields
a = rand(3,5);
// ! L.2: mtlb(:) can be replaced by :() or : whether : is an M-file or not.
a(1,mtlb(:)) = 6
while mtlb() does not exist.
ERROR LOG:
----------
None. See above
HOW TO REPRODUCE THE BUG:
-------------------------
mfile = TMPDIR+"/colon.m";
mputl(["a = rand(3,5);" "a(1,:) = 6"]', mfile)
mfile2sci(mfile, TMPDIR)
edit TMPDIR/colon.sci
OTHER INFORMATION:
------------------
Some m2sci bugs reports have been reopened likely due to this bug.
They are tagged with mtlb(:) in comment.