News for hackers. Stuff that matters.
Re:Take care editing bash scripts (2019) by photon-torpedo on Wednesday May 06, 2020 @05:09AM (#23089153)
Thanks, indeed with nano I can reproduce this.

One way to check how the editor behaves is to run

    ls -li run.sh
before and after editing the script. The first number in the output is the inode of the file; if it stays the same then the file was overwritten.
Re:Take care editing bash scripts (2019) by michaelmrose on Thursday May 07, 2020 @05:52PM (#23108784)
it changes under both emacs and vim but not under nano. Neither vim nor emacs is overwriting it in place but both show the bad behavior on my end.