bug-ed
[Top][All Lists]
Advanced

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

[Bug-ed] Searching for multiple matches with \+ isn't working


From: Brian Zwahr
Subject: [Bug-ed] Searching for multiple matches with \+ isn't working
Date: Wed, 02 Jan 2019 13:03:54 -0600

I'm having an issue where using \+ to search for multiple matches isn't 
working. Am I doing something wrong?

I have GNU ed 1.14.2 installed on the latest macOS through Homebrew 
(https://brew.sh). Homebrew installed the executable as ged instead of ed, to 
not overtake the BSD ed that ships with macOS. I mention this so you understand 
why the command I'm running is ged instead of ed.

I see that 1.15 is in pre-release, but I don't see this issue addressed in the 
changelogs I'm seeing in the archives of this list.

Here are steps to reproduce:

$ ged -v
# Let's add a couple of lines.
a
foobar
bazfoo
.
# Great! Now, let's search for "o".
g/o/
foobar
bazfoo
# Both lines match. Perfect. Now, let's search for multiple "o"s.
g/o\+/
# Not found? :-(
q
?
Warning: buffer modified
q

Proof of version:

$ ged -V
GNU ed 1.14.2
Copyright (C) 1994 Andrew L. Moore.
Copyright (C) 2017 Antonio Diaz Diaz.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.



reply via email to

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