FEATURE_VI_REGEX_SEARCH bug

Denys Vlasenko vda.linux at googlemail.com
Thu Nov 29 13:41:08 UTC 2018


Fixed in git, thanks!
On Sun, Nov 25, 2018 at 8:35 PM Andrey Dobrovolsky
<andrey.dobrovolsky.odessa at gmail.com> wrote:
>
> If busybox is compiled with FEATURE_VI_REGEX_SEARCH enabled, command
> ":s/x/y/" searches not only in the current line, but continues search
> after it. This makes range searches (":1,3s/x/y/") work incorrect. For
> example file "./test" :
> 1
> 2
> 3
> $vi ./test
> :1,2s/3/e/
> gives us :
> 1
> 2
> e
> This error affects versions at least since 1.23, simple patches for
> 1.27.2 and 1.29.3 attached, I can check other versions, if necessary.
> Patches must be applied to "editors/vi.c"
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list