Re:Take care editing bash scripts (2019)
by raimue on Wednesday May 06, 2020 @05:40PM
(#23096639)
There are situations in which even vim will write directly to the file. When you do not have write permissions on the directory, vim will not be able to create a new file and will therefore "reuse" the existing file.
Edit: Here is the list in the vim source code when it will not use rename: https://github.com/vim/vim/blob/95f0b6e5a5e5861da34cc064c601...