part("",k) with k<=$ yields an error instead of returning ""
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
part("",k) with k<=$ yields an error instead of returning "":
--> part("",$)
at line 18 of function %p_part ( SCI\modules\string\macros\%p_part.sci line 30 )
in builtin part
part: Wrong values for input argument #2: Must be >= 1.
--> part("",$-1)
at line 18 of function %p_part ( SCI\modules\string\macros\%p_part.sci line 30 )
in builtin part
part: Wrong values for input argument #2: Must be >= 1.
ERROR LOG:
----------
part: Wrong values for input argument #2: Must be >= 1.
HOW TO REPRODUCE THE BUG:
-------------------------
part("",$)
part("",$-1)
OTHER INFORMATION:
------------------
Already in Scilab 5