FEATURE_VI_REGEX_SEARCH bug

2018-11-25 Thread Andrey Dobrovolsky
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

Re: [PATCH] Add a 'busybox --list name' option to display script content

2018-11-25 Thread Walter Harms
Am 09.11.2018 19:10, schrieb Ron Yorston: > Add an option to allow the content of embedded scripts to be > displayed. > > @@ -865,6 +877,22 @@ int busybox_main(int argc UNUSED_PARAM, char **argv) > # else > const char *a = applet_names; > # endif > + > + if

[PATCH] build system: prevent duplicate applet names

2018-11-25 Thread Ron Yorston
The embedded script feature makes it easier to create applets with duplicate names. Currently in such cases the build succeeds but the resulting executable doesn't work as the developer intended. Catch duplicate names when the applet tables are being generated and make the build fail.