I tested this sequence in ed 1.14.2, the current version, and the results were 
the same as in BSD. The version included in Debian stable and Ubuntu Xenial 
(16.04 LTS) is 1.10.

On Sunday, December 24, 2017 9:03:36 PM CST Tim Chase wrote:
> Steps to recreate:
> 
>   tim@bsdbox$ ed
>   a
>   x1
>   y2
>   y3
>   .
>   2
>   -,+s/x/y/p
>   y1
>   .=
>   1
> 
> BSD ed (tested both OpenBSD 6.2 and FreeBSD 11) leaves you on line 1
> (the only/last line changed)
> 
>   tim@gnubox$ ed
>   a
>   x1
>   y2
>   y3
>   .
>   2
>   -,+s/x/y/p
>   y3
>   .=
>   3
> 
> GNU ed (tested Debian Stable & Ubuntu 16.04LTS) leaves you on line 3
> (the end of the range)
> 
> Thanks,
> 
> -Tim
> (@gumnos/@ed1conf)
> 
> 
> 
> 
> _______________________________________________
> bug-ed mailing list
> bug-ed@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-ed



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

Reply via email to