Hi Antonio, et.al:

So in ed 1.13 and earlier you could do something like this:

Assume the editor buffer looks like:

1 foo bar baz


* 1s/ bar[ENTER]
# And this would do the replacement resulting in 1 foo baz

Now however in ed 1.14.2

* 1s/ bar[ENTER] 
# Returns an error
?
# So we have to do
* 1s/bar/[ENTER]



Is this an intentional change or a bug?  It was really convenient before, now 
this almost seems like a pain.  And the thing is that BSD’s version of ed still 
supports this shortened form `s/xyz`.  So I feel like that should be the 
expected behavior for GNU ed as well (as it used to be).  It’s hard to see this 
as an improvement.



 

_______________________________________________
bug-ed mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-ed

Reply via email to