dir() on a directory having only files (no subdir) displays a +[] warning (from %dir_p()). PATCH attached.
@sgougeon)
Reported by Samuel GOUGEON (%dir_p.sci (2.05 KB, application/x-download)
%dir_p.sci trivially fixed
BUG DESCRIPTION:
----------------
--> dir
ans =
operation +: Warning adding a matrix with the empty matrix will give an empty matrix result.
lib names sind.bin sind.sci
--> warning stop
--> dir
ans =
operation +: Warning adding a matrix with the empty matrix will give an empty matrix result.
at line 12 of function %dir_p ( C:\LOGICI~1\scilab\SCILAB~1.0-B\modules\fileio\macros\%dir_p.sci line 25 )
ERROR LOG:
----------
See above
HOW TO REPRODUCE THE BUG:
-------------------------
//* Go to a directory having only files, no subdirectories
dir
OTHER INFORMATION:
------------------
dir() is a heavy used function. Please fixed it asap.