[PATCH] crontab: Fix -e with editors saving using renaming strategy

dietmar.schindler at manrolandgoss.com dietmar.schindler at manrolandgoss.com
Wed Jul 15 12:32:31 UTC 2020

> -----Original Message-----
> From: busybox <busybox-bounces at busybox.net> On Behalf Of Gray Wolf
> Sent: Saturday, June 13, 2020 2:01 AM
> Some editors (like vim) use renaming strategy to save file. That means
> they save a file to some random name and then rename it to final
> location. ...

Irrespective of the usefulness of this patch, I note that this is not what "vim" does by default; it rather copies the old file to a temporary file, then opens and writes the original file, and if all went well, removes the temporary file. This makes sense in order to preserve hard links.

:help backup
If you write to an existing file (but do not append) while the 'backup',
'writebackup' or 'patchmode' option is on, a backup of the original file is
made.  The file is either copied or renamed (see 'backupcopy').  After the
file has been successfully written and when the 'writebackup' option is on and
the 'backup' option is off, the backup file is deleted.  When the 'patchmode'
option is on the backup file may be renamed.
[more to read]
Best regards,
Dietmar Schindler
manroland Goss web systems GmbH | Managing Director: Franz Kriechbaum
Registered Office: Augsburg | Trade Register: AG Augsburg | HRB-No.: 32609 | VAT: DE815764857

Confidentiality note:
This message and any attached documents may contain confidential or proprietary information of manroland|Goss. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. If you have received this communication in error, please immediately notify the sender and delete the message from your system. All liability for viruses is excluded to the fullest extent permitted by law.

More information about the busybox mailing list