Ori Avtalion wrote:
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.
The Q command does not cause ed to exit with status 1: $ ed -v ; echo $? 0a foo . Q 0 But it does not prevent an exit status of 1 if some other command failed: $ ed -v ; echo $? 0a foo . q ? Warning: buffer modified Q 1 _______________________________________________ bug-ed mailing list bug-ed@gnu.org https://lists.gnu.org/mailman/listinfo/bug-ed