getd() generates unwanted variable k
Reported by mattia.dambrogio
BUG DESCRIPTION:
----------------
Using getd(path) generates a variable k. The variable has value equal to the number of .sci files in the searched path. The main issue is that any variable k existing in the environment is overwritten.
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
--> size(listfiles('SCI/modules/cacsd/macros' + '/*.sci'))
ans =
183. 1.
--> k
Undefined variable: k
--> getd('SCI/modules/cacsd/macros')
Warning : redefining function: dhnorm . Use funcprot(0) to avoid this message
Warning : redefining function: dhnorm . Use funcprot(0) to avoid this message
Warning : redefining function: dhtest . Use funcprot(0) to avoid this message
Warning : redefining function: epred . Use funcprot(0) to avoid this message
--> k
k =
183.
OTHER INFORMATION:
------------------
This bug was not present in Scilab 5.2.2.
The returned variable is most probably the one defined at line 59 of the getd() code
59 for k = 1:size(lst,"*");