[Bugzilla] [Bug 15472] New: mdelete("test") works like mdelete("test.*") !!!

bugzilla.admin at scilab.org bugzilla.admin at scilab.org
Mon Mar 5 03:58:26 CET 2018


http://bugzilla.scilab.org/show_bug.cgi?id=15472
--------- Bug Summary -----------
mdelete("test") works like mdelete("test.*") !!!

---------- Changed by ------------
sgougeon at free.fr

---------- What changed ----------
bug_id, short_desc, product, version, rep_platform, op_sys, bug_status, bug_severity, priority, component, assigned_to, reporter


            Bug ID: 15472
           Summary: mdelete("test") works like mdelete("test.*") !!!
           Product: Scilab software
           Version: 5.0 through 5.3.x
          Hardware: (not used)
                OS: All OS
            Status: NEW
          Severity: Critical
          Priority: (field not used)
         Component: Input / output
          Assignee: bugzilla.admin at scilab.org
          Reporter: sgougeon at free.fr

BUG DESCRIPTION:
----------------
mdelete("test") works like mdelete("test.*")!
So, it can unexpectedly delete MANY files (with no trash bin) without using any wildcard.

--> mputl("", TMPDIR+"/test");
--> mputl("", TMPDIR+"/test2");
--> mputl("", TMPDIR+"/test.sci");
--> isfile(TMPDIR+"/"+["test" "test2" "test.sci"])
 ans  =
  T T T

--> mdelete(TMPDIR+"/test")
--> isfile(TMPDIR+"/"+["test" "test2" "test.sci"])
 ans  =
  F T F    // test.sci is missing!


ERROR LOG:
----------
none. Wrong behavior


HOW TO REPRODUCE THE BUG:
-------------------------
mputl("", TMPDIR+"/test")
mputl("", TMPDIR+"/test2")
mputl("", TMPDIR+"/test.sci")
isfile(TMPDIR+"/"+["test" "test2" "test.sci"])
mdelete(TMPDIR+"/test")
isfile(TMPDIR+"/"+["test" "test2" "test.sci"])


OTHER INFORMATION:
------------------
This bug appeared in Scilab 5.2
It was likely introduced when fixing the bug 4295.
I have suffered from it in Scilab 6.0.1

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180305/779cb0b9/attachment.htm>


More information about the Bugzilla mailing list