Hi Andrew,

Andrew L. Moore wrote:
ed doesn't handle SIGPIPE and so ungracefully exits upon receiving it.

AFAICT, that is compatible with POSIX:

https://pubs.opengroup.org/onlinepubs/9799919799/utilities/ed.html
"The ed utility shall take the standard action for all signals"

While you're at it, you might want to revisit your file I/O.  For example,
[...]
* r ! exit 1
! exit 1: Success
Cannot close input file

Thank you very much for reporting this. The misbehavior above is caused by an incomplete attempt at detecting a nonzero exit status of the shell command. I have reverted to ignoring the exit status. The fix will appear in ed 1.21 in a few days.

Best regards,
Antonio.

Reply via email to