The non-zero exit status only appears with 1.14.2, and not with 1.13.
Executing the H command reveals that the ? warning is "buffer modified".

The relevant change is likely:
>The modified status is no longer cleared after writing the buffer to the
>standard input of a shell command. (Reported by Jérôme Frgacic).

Reported at https://lists.gnu.org/archive/html/bug-ed/2016-08/msg00000.html

When the Q command is issued on a modified buffer, I don't understand
why ed exits with exit status 1 instead of 0. No error has occurred.

_______________________________________________
bug-ed mailing list
bug-ed@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-ed

Reply via email to