bug-ed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ed doesn't handle SIGPIPE


From: Antonio Diaz Diaz
Subject: Re: ed doesn't handle SIGPIPE
Date: Fri, 03 Jan 2025 16:24:57 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14

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

[Prev in Thread] Current Thread [Next in Thread]