G'day
The text editor nano has this feature, that creates a save-file when the editor receives a SIGHUP or SIGTERM or runs out of memory.
In this case nano writes the current editor content to a temporary file called nano.save or, if editing an existing file, nano is adding the .save suffix to this filename: filename.save.
Basically this is a great feature. The problem is, that I am editing files in /etc/cron.d/ with nano and therefore find a lot of *.save-files in this folder.
So this eventually leads to double cron jobs.
So my questions are:
Is there a way to prevent nano from saving those buffers to the filesystem?
Or is it possible to change the folder of those files to another, fixed location?
Or is there another way to tell cron to not run files containing /.save/
Thanks in advance