View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0001940 | 1003.1(2016/18)/Issue7+TC2 | Shell and Utilities | public | 2025-08-16 16:33 | 2025-08-28 16:45 | 
| Reporter | Antonio Diaz | Assigned To | |||
| Priority | normal | Severity | Objection | Type | Omission | 
| Status | Resolved | Resolution | Accepted As Marked | ||
| Name | Antonio Diaz | ||||
| Organization | GNU | ||||
| User Reference | |||||
| Section | ed | ||||
| Page Number | ? | ||||
| Line Number | ? | ||||
| Interp Status | --- | ||||
| Final Accepted Text | 0001940:0007239 | ||||
| Summary | 0001940: ed should ignore (or handle) SIGPIPE | ||||
| Description | The specification for ed states in section ASYNCHRONOUS EVENTS that: "The ed utility shall take the standard action for all signals (...) with the following exceptions: SIGINT (...), SIGHUP (...), SIGQUIT (...)". But ed should also ignore (or handle) SIGPIPE to prevent commands like 'w !:' (writing to a shell command that does not read (all of) its standard input) from abnormally terminating ed without saving the changes. GNU ed prevents such unwanted termination by ignoring SIGPIPE and detecting a broken pipe just as any other write error. | ||||
| Desired Action | Add to section ASYNCHRONOUS EVENTS something like the following: SIGPIPE The ed utility shall ignore this event. | ||||
| Tags | issue8, tc1-2024 | ||||
|  | > GNU ed prevents such unwanted termination by ignoring SIGPIPE Is this a recent change? I tried it with GNU ed 1.19 from Debian bookworm and it was terminated by SIGPIPE. Also got SIGPIPE on Solaris 11.4 and macOS. I see that the standard says the behaviour on SIGPIPE for ex is unspecified, so perhaps we should do the same for ed. | 
|  | Before Issue 8 page 2816 line 93355 section ed (ASYNCHRONOUS EVENTS), insert: SIGPIPEThe behavior is unspecified. | 
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2025-08-16 16:33 | Antonio Diaz | New Issue | |
| 2025-08-16 16:33 | Antonio Diaz | Tag Attached: issue8 | |
| 2025-08-28 15:11 | geoffclare | Note Added: 0007237 | |
| 2025-08-28 16:26 | geoffclare | Note Added: 0007239 | |
| 2025-08-28 16:27 | geoffclare | Status | New => Resolved | 
| 2025-08-28 16:27 | geoffclare | Resolution | Open => Accepted As Marked | 
| 2025-08-28 16:27 | geoffclare | Interp Status | => --- | 
| 2025-08-28 16:27 | geoffclare | Final Accepted Text | => 0001940:0007239 | 
| 2025-08-28 16:27 | geoffclare | Tag Attached: tc1-2024 | |
| 2025-08-28 16:45 | geoffclare | Note Edited: 0007239 | 
