bug-ed
[Top][All Lists]
Advanced

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

[Bug-ed] Re: Infinite loop in ed-0.6 and older


From: Karsten Hopp
Subject: [Bug-ed] Re: Infinite loop in ed-0.6 and older
Date: Tue, 03 Jul 2007 15:34:49 +0200
User-agent: Thunderbird 2.0.0.0 (X11/20070419)

Karsten Hopp schrieb:
Hello,

ed enters an infinite loop when there's only one line in the edited file and you're
using the ?re syntax.


That patch looks ok, the infinite loop doesn't occur anymore and a quick
test with a file containing
ax
ay
az
now shows similar behaviour of /a and ?a  wrt. wrapping from top to bottom:
localhost:[ed-0.6] >./ed ~/test
9
.
az
/a
ax
/a
ay
/a
az
/a
ax
.
ax
q
localhost:[ed-0.6] >./ed ~/test
9
.
az
?a
ay
?a
ax
?a
az
?a
ay
.
ay

Without the patch az was skipped after jumping from top to EOF:
localhost:[ed-0.6] >./ed ~/test
9
.
az
?a
ay
?a
ax
?a
ay      <---
?a
ax

 Thanks!
    Karsten

--
 Karsten Hopp        | Mail: address@hidden
 Red Hat Deutschland | Tel: +49-711-96437-0
 Hauptstaetterstr.58 | Fax: +49-711-613590
 D-70178 Stuttgart   | http://www.redhat.de




reply via email to

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