getd("dir") returns error if a file in "dir" has the command "clear"
Reported by Hadi
Archive.zip (2.14 KB, application/zip)
Unzip and run "execute.sci" to see the bug in action.
BUG DESCRIPTION:
----------------
The command getd("dir_path") results in a vague error if one of the files in the "dir_path" has the "clear" command.
ERROR LOG:
----------
!--error 4
Undefined variable: nold
at line 49 of function getd called by :
getd(d+folderName);
at line 14 of exec file called by :
ve folder/execute_all_Files.sci', -1
HOW TO REPRODUCE THE BUG:
-------------------------
1-Create an empty folder.
2-Inside the folder create "file1.sci". This file should have at least one line that reads "clear".
3-Now in scilab type getd("dir_path") where "dir_path" is the path of the folder that you created.
OTHER INFORMATION:
------------------
I'm attaching a minimal demonstration.