Closed krackers closed 3 years ago
They are not the same. Somebody with a Mac reported that edir
did not work. The reason is because the editor he was using likely created a completely new file when it wrote the changed contents and thus edir
must reopen the file a second time.
Ah that makes sense, thanks. I think vim is one of the editors that by default creates a new file and then swaps the links.
Edit: Seems that the defaults depend on the os. On linux backupcopy
is yes whereas on osx it seems to be auto
(which in most cases is no
).
I use vim and on all the Linux machines I've used edir I never saw a problem. Apparently, the guy that had the problem on a Mac was using vim though.
This isn't a bug, I was just curious as to why in 515f2e5 you switched from doing
to
The two seem basically equivalent to me, except for in the former you have to manually flush/seek in between the write/read. Was switching to the latter motivated just based on clarity, or is there an actual bug that motivated the changed?