Exactly as expected.  You have said "1,3" which sets dot to 3.  Then you
give it the null command, which is equivalent to .+1p.  So naturally it
prints line 4.



On Tue, Oct 22, 2019 at 11:34 AM Eric Lindblad via bug-ed <bug-ed@gnu.org>
wrote:

> System: Slackware Linux (version 14.2)
> CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz
> Deps: ed-1.13.tar.xz
>
> Ranges don't seem to work as demonstrated in opening the below file in ed
> then typing 1,3 RET.
>
> bash-4.3$ ed --version | head -n 1
> GNU ed 1.13
> bash-4.3$ wc -l geisel
> 4 geisel
> bash-4.3$ cat geisel
> one fish
> two fish
> red fish
> blue fish
> bash-4.3$
>
> _______________________________________________
> 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