fix #8698: cp(src,dst) should truncate dst if it already exists
Merge pull request #8741 from stevengj/cp_trunc

fix #8698: cp(src,dst) should truncate dst if it already exists