bug-ed
[Top][All Lists]
Advanced

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

Re: [Bug-ed] specifying ranges


From: vks
Subject: Re: [Bug-ed] specifying ranges
Date: Tue, 22 Oct 2019 16:07:42 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Not quite. It prints line 3, "red fish". .+1p is only the default for the null
command in the absence of a specified address or range of addresses.

vks

On 10/22/19 2:21 PM, John Cowan wrote:

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 <address@hidden>
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
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-ed

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



reply via email to

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