Earlier quoted context omitted.
> Unit files. ... you create a new file, which replaces the old one on close. Classic MacOS-9 had the PBExchangeFiles call which did this perfectly. Before call: dirEntryA -> fileContentsA dirEntryB -> fileContentsB after call dirEntryA -> fileContentsB dirEntryB -> fileContentsA This meant that the user kept all meta info for files, e.g. tags, window position, custom icons, etc. So when saving a new document you wro…
Like renameat2 on Linux with RENAME_EXCHANGE ?
So tags from a will end up on b. If b is a temp file, then the tags will be lost after the temp file is deleted.