bug-ed
[Top][All Lists]
Advanced

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

[Bug-ed] Inconsistency between BSD ed(1) and GNU ed(1)


From: Tim Chase
Subject: [Bug-ed] Inconsistency between BSD ed(1) and GNU ed(1)
Date: Sun, 24 Dec 2017 21:03:36 -0600

Steps to recreate:

  address@hidden ed
  a
  x1
  y2
  y3
  .
  2
  -,+s/x/y/p
  y1
  .=
  1

BSD ed (tested both OpenBSD 6.2 and FreeBSD 11) leaves you on line 1
(the only/last line changed)

  address@hidden ed
  a
  x1
  y2
  y3
  .
  2
  -,+s/x/y/p
  y3
  .=
  3

GNU ed (tested Debian Stable & Ubuntu 16.04LTS) leaves you on line 3
(the end of the range)

Thanks,

-Tim
(@gumnos/@ed1conf)






reply via email to

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