{ File f; f.popen("command", "w"); f.write("hello world"); } This throws in its destructor "cannot close file (success)". It looks like File always calls fclose() on its handle, but if it is opened with popen(), it should call pclose() to close it instead.
*** This issue has been marked as a duplicate of issue 3157 ***