Edit: Never mind, I'm apparently wrong.
> rm test.txt && java -version
rm: cannot unlink entry "test.txt": The system cannot find the file specified.