I can't seem to be able to reliably use ed(1) as the editor for comp(1).

After saving the file I mostly (not always) get the following error:

whatnow: problems with edit--draft left in /home/saper/Mail/drafts/,1

What is going on?

I have added the following line to diagnose more:

$ diff orig/nmh-1.8/uip/whatnowsbr.c nmh-1.8/uip/whatnowsbr.c
760a761
                fprintf(stderr, "status = 0x%04x use = 0x%02x reedit = 0x%02x");

and an example output is:

wq
832
status = 0x0000 use = 0x32d9aa8a reedit = 0xd76780f0whatnow: problems with 
edit--draft left in /home/saper/Mail/drafts/,4

"wq" and "843" come from ed.

This never happes with the vim-minimal-9.1.393-1.fc39.x86_64 editor.

By the way, the system is not very reliable in counting comma files -
it managed to overwrite my ",1" once.

This is fedora 39, nmh 1.8 compiled from source, ed-1.19-4.fc39.x86_64
Does not seem to happen on FreeBSD 15-CURRENT with nmh-1.8 from pkg(8).

saper

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to