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: David Given
Subject: Re: [Bug-ed] Ed scripts failing in versions after ~1.10
Date: Tue, 22 May 2018 21:32:42 +0200

It's worth mentioning that the ed these scripts were written for didn't have the buffer-modified warning at all --- the scripts are full of fragments like this:

ed - $em_table <<'A' > X
1,/^$/g/ /s// /gp
A

(from https://github.com/davidgiven/ack/blob/4d24666432a4a01a67ed9b993c912f44b4cfe0a8/modules/src/em_data/new_table, written in 1985.)

I believe this worked fine on 1.10.


On Tue, 22 May 2018 at 20:41 Ori Avtalion <address@hidden> wrote:
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.

reply via email to

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