[Issue 5243] dmd -run potentially removes user files
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Nov 3 05:41:31 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=5243
Eduard Staniloiu <edi33416 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #17 from Eduard Staniloiu <edi33416 at gmail.com> ---
I am marking this as resolved.
I've reproduced the steps from Leandro's report, but the issue is not present
anymore; the test file containing very important data is not erased.
Then I tested the following piece of code:
// test.d
void main(string[] args) {
writeln(args[0]);
}
Running
$ dmd -run test.d
outputs: /tmp/dmd_runnUHV2q
As you can see, dmd -run now builds the code in /tmp/ and runs it from there.
All of the above have been tested using the following dmd version:
DMD64 D Compiler v2.073.0-devel-ab9d712
--
More information about the Digitalmars-d-bugs
mailing list