rascal icon indicating copy to clipboard operation
rascal copied to clipboard

copy function copies contents of file into target rather than copy the file?!

Open jurgenvinju opened this issue 3 years ago • 1 comments

Describe the bug

rascal>import IO;
ok
rascal>writeFile(|tmp:///a.txt|, "aaaaaa");
ok
rascal>writeFile(|tmp:///b.txt|, "bbb");
ok
rascal>copy(|tmp:///b.txt|, |tmp:///a.txt|)
ok
rascal>readFile(|tmp:///a.txt|)
str: "bbbaaa"

To be clear: that should have been bbb without the trailing aaa.

jurgenvinju avatar Sep 26 '22 08:09 jurgenvinju

@JJWTimmer this is messing up some parts of the Tutor that use copy

jurgenvinju avatar Sep 26 '22 08:09 jurgenvinju