@87c98d39@e7491467@2ad00f7c Um.
Going back to the *problem*, untarring in the wrong directory, neither code is necessarily good.
1. Where you did this, there is an entry "foo".
2. The tarball contains an entry "foo".
If you overwrote "foo", your original file is lost. If you didn't, you'll lose it after deleting all entries contained in the tarball.
Notes by Jens Finkhäuser | export