It's editor related - happens to me too, my $EDITOR and $VISUAL point at /usr/bin/joe Cheers MH On 20.06.2019 16:40, Dave Howorth wrote:
On Thu, 20 Jun 2019 13:51:55 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 20/06/2019 12.56, Per Jessen wrote:
Dave Howorth wrote:
Sounds most likely to be a bug in your editor - jstar? I would try say nano I get nano by default, but no doubt there is a config option somewhere. The editor is jstar because I have the enviroment variable:
Legolas:~ # set | grep -i editor EDITOR=/usr/bin/jstar
No, there is no bug in jstar. jstar creates a backup file automatically. The name is provided by systemd.
The command "crontab -e" edits the crontab file, and there is no issue with random backups, so the bug is in systemd:
Legolas:~ # crontab -e
...
File /tmp/crontab.p1XWIq saved crontab: installing new crontab Legolas:~ # l /tmp/crontab.p1XWIq ls: cannot access '/tmp/crontab.p1XWIq': No such file or directory Legolas:~ # l /tmp/crontab* -rw------- 1 root root 0 Jan 1 1970 /tmp/crontab.p1XWIq~ Legolas:~ #
But it is in /tmp, where it can be easily purged periodically.
Legolas:~ # l /var/spool/cron/tabs/ total 12 drwx------ 2 root root 4096 Jun 20 13:45 ./ drwx------ 4 root root 4096 Jun 17 2018 ../ -rw------- 1 root root 144 Jun 20 13:45 root Legolas:~ # Well I don't get a file left behind by editing crontab (which uses vim on my system) or by editing a systemd service file (which uses nano on my system). So either:
it's a newly introduced bug (I'm on 15.0) or it is editor-related or both
I still suggest you try the edit using the default (nano) and then report the bug. If you report it with a non-standard editor that's the first question to be asked.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org