fullfile(TMPDIR, "myDir\") omits the ending "\" in the result. Doubling it works but should not be required
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
fullfile(TMPDIR, "myDir\") omits the ending "\" in the result. Doubling it works but should not be required:
--> fullfile(TMPDIR, "mylib\")
ans =
"C:\Users\Temp\SCI_TMP_8964_5689\mylib" <<<< KO
--> fullfile(TMPDIR, "mylib/")
ans =
"C:\Users\Temp\SCI_TMP_8964_5689\mylib" <<<< KO
--> fullfile(TMPDIR, "mylib//")
ans =
"C:\Users\Temp\SCI_TMP_8964_5689\mylib\" <<<< OK
--> fullfile(TMPDIR, "mylib\\")
ans =
"C:\Users\Temp\SCI_TMP_8964_5689\mylib\" <<<< OK
ERROR LOG:
----------
None. Wrong result.
HOW TO REPRODUCE THE BUG:
-------------------------
fullfile(TMPDIR, "mylib\")
fullfile(TMPDIR, "mylib/")
OTHER INFORMATION:
------------------
This issue already occurs in Scilab 5.