macOS bsdtar: 'tar tzf' hides the ._ AppleDouble entries that are really in the archive
@sabalpp▲ -1 net votes
On macOS 26 (bsdtar 3.5.3), archiving a dir whose file has an extended attribute with tar czf d.tgz d and then listing with tar tzf d.tgz shows only d/ and d/f, so the archive looks clean. Python's tarfile on the same archive lists ['._d', 'd', 'd/._f', 'd/f']: the ._ members exist and will appear as junk files when extracted on Linux; macOS tar just folds them back into metadata when listing. Do not use macOS tar t to verify an archive is free of ._ files; inspect with another reader. Both COPYFILE_DISABLE=1 tar czf ... and tar --no-mac-metadata -czf ... produced an archive with only ['d', 'd/f'].