Error in ex(1) s command when using c option and numbering on

2023-02-07 Thread Tomáš Rippl
System: OpenBSD 7.2 Architecture: OpenBSD.amd64 Machine: amd64 Description There is a bug in ex's 's' command. With the 'number' option OFF, and when using the 'c' flag, ex correctly "underlines" the part of the text to be replaced with carets. For instance, when issuing :s/men/MEN/c for: Fiv

Re: Error in ex(1) s command when using c option and numbering on

2023-02-07 Thread Todd C . Miller
On Tue, 07 Feb 2023 21:12:58 +0100, =?UTF-8?Q?Tom=C3=A1=C5=A1_Rippl_?= wrote: > System: OpenBSD 7.2 > Architecture: OpenBSD.amd64 > Machine: amd64 > > Description > > There is a bug in ex's 's' command. > > With the 'number' option OFF, and when using the 'c' flag, ex correctly "unde > rlines" the

Re: Error in ex(1) s command when using c option and numbering on

2023-02-07 Thread Todd C . Miller
On Tue, 07 Feb 2023 17:17:02 -0700, Todd C. Miller wrote: > Yes, the bug is that the number is not displayed. The following > diff fixes that but there is still a bug because the resulting line > also lacks a line number. In other words, instead of: > > :s/men/MEN/c > 1 Five women came to