Summary: dmd -run potentially removes user files
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD

--- Comment #0 from Leandro Lucarella <> 2010-11-19 16:09:43 
PST ---
See this example:

$ mkdir x
$ echo 'void main() {}' > x/test.d
$ echo "my very important data that shouldn't be ereased" > test
$ ls test 
$ cat test
my very important data that shouldn't be ereased
$ dmd -run x/test.d 
$ ls test
ls: cannot access test: No such file or directory
$ cat test
cat: test: No such file or directory

I think this is a very serious bug. It's really unexpected that DMD removes the
test file (I can understand why it happens, but it shouldn't). test.d being in
another directory is just to point how much surprising could be that running a
"script" in an unrelated directory removes files in the current directory.

If DMD wants to put D in the scripting world, this should be fixed ASAP, as no
scripting language EVER will remove your files unexpectedly.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to