News for hackers. Stuff that matters.
Re:Take care editing bash scripts (2019) by scbrg on Wednesday May 06, 2020 @04:38AM (#23088999)
> Are there editors that actually overwrite the original file, instead of creating a new file?

Yes, there are. This bit me at one point, since I created a Make target depending on directories rather than individual files in the directories (for performance). A directory gets updated when a new file is created, so it worked for all developers except one - who had an editor that saved files in place. I think that developer was using Sublime, but I might remember wrong.

Re:Take care editing bash scripts (2019) by uryga on Wednesday May 06, 2020 @07:05AM (#23089673)
iirc Sublime Text overwrites if you set

  "atomic_save": false
Re:Take care editing bash scripts (2019) by cl3misch on Wednesday May 06, 2020 @08:21AM (#23090135)
Thank you! I code with Sublime on files mounted with sshfs, and could not figure out why %autoreload (automatically reload imported modules in iPython) did not work. Apparently %autoreload watches directory updates, which are only triggered with atomic saves when using sshfs with cache.
Re:Take care editing bash scripts (2019) by rrobukef on Wednesday May 06, 2020 @05:02AM (#23089117)
I know `nano` does this.