[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-ed] Change in `s/xyz` 1.13 -> 1.14.2 ?
From: |
Steven Terpe |
Subject: |
[Bug-ed] Change in `s/xyz` 1.13 -> 1.14.2 ? |
Date: |
Mon, 9 Oct 2017 05:31:45 +0000 |
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.