listfiles() may yield a list mixing relative paths and no_path, or relative and absolute paths
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
Despite that the history indicates
5.4.0: If paths is not a single string, all returned files are homogenized with the absolute path form.
this is not always true. Examples:
--> cd SCI/modules/boolean/macros;
--> listfiles(["../macros" "*.bat"])
ans =
!..\macros\cleanmacros.bat !
!..\macros\buildmacros.sce !
!..\macros\buildmacros.bat !
!cleanmacros.bat !
!buildmacros.bat !
--> listfiles(["SCI/modules/boolean/macros" "*.bat"])
ans =
!C:\scilab-6.0.1\modules\boolean\macros\cleanmacros.bat !
!C:\scilab-6.0.1\modules\boolean\macros\buildmacros.sce !
!C:\scilab-6.0.1\modules\boolean\macros\buildmacros.bat !
!cleanmacros.bat !
!buildmacros.bat !
ERROR LOG:
----------
None. Wrong behavior.
HOW TO REPRODUCE THE BUG:
-------------------------
cd SCI/modules/boolean/macros;
listfiles(["../macros" "*.bat"])
listfiles(["SCI/modules/boolean/macros" "*.bat"])
OTHER INFORMATION:
------------------
Still in Scilab 6.0.2