bug-ed
[Top][All Lists]
Advanced

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

Re: [Bug-ed] Ed scripts failing in versions after ~1.10


From: Antonio Diaz Diaz
Subject: Re: [Bug-ed] Ed scripts failing in versions after ~1.10
Date: Wed, 23 May 2018 00:09:02 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14

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



reply via email to

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