<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/testsuite/sed.tests, branch long_paths</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=long_paths</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=long_paths'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2022-01-23T18:04:27+00:00</updated>
<entry>
<title>sed: fix handling of escaped delimiters in s/// replacement</title>
<updated>2022-01-23T18:04:27+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-01-23T18:04:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f12fb1e4092900f26f7f8c71cde44b1cd7d26439'/>
<id>urn:sha1:f12fb1e4092900f26f7f8c71cde44b1cd7d26439</id>
<content type='text'>
function                                             old     new   delta
parse_regex_delim                                    111     140     +29

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sed: fix handling of escaped delimiters in s/// search pattern, closes 14541</title>
<updated>2022-01-23T17:48:49+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-01-23T17:48:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e998c7c032458a05a7afcc13ce0dc980b99ecc6c'/>
<id>urn:sha1:e998c7c032458a05a7afcc13ce0dc980b99ecc6c</id>
<content type='text'>
function                                             old     new   delta
copy_parsing_escapes                                  67      96     +29
parse_regex_delim                                    109     111      +2
get_address                                          213     215      +2
add_cmd                                             1176    1178      +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 35/0)               Total: 35 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sed: correctly handle 'w FILE' commands writing to the same file</title>
<updated>2022-01-04T18:42:36+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-01-04T18:42:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=286b33721d5f6afd615f752ea83bbd72658c6bb9'/>
<id>urn:sha1:286b33721d5f6afd615f752ea83bbd72658c6bb9</id>
<content type='text'>
function                                             old     new   delta
sed_xfopen_w                                           -      84     +84

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sed: do not ignore 'g' modifier when match starts with ^</title>
<updated>2021-12-25T03:20:28+00:00</updated>
<author>
<name>Dominique Martinet</name>
<email>asmadeus@codewreck.org</email>
</author>
<published>2021-12-21T12:52:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4fe954c14851d2f913c41c581cbe49300b0984e4'/>
<id>urn:sha1:4fe954c14851d2f913c41c581cbe49300b0984e4</id>
<content type='text'>
It is perfectly valid to start a regex with ^ and have other patterns
with \| that can match more than once, e.g. the following example
should print ca, as illustrated with gnu sed:
$ echo 'abca' | sed -e 's/^a\|b//g'
ca

busybox before patch:
$ echo 'abca' | busybox sed -e 's/^a\|b//g'
bca

busybox after patch:
$ echo 'abca' | ./busybox sed -e 's/^a\|b//g'
ca

regcomp handles ^ perfectly well as illustrated with the second 'a' that
did not match in the example, we ca leave the non-repeating to it if
appropriate.
The check had been added before using regcomp and was required at the
time (f36635cec6da) but no longer makes sense now.

(tested with glibc and musl libc)

function                                             old     new   delta
add_cmd                                             1189    1176     -13

Signed-off-by: Dominique Martinet &lt;asmadeus@codewreck.org&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sed: fix /regex/,+N match triggering only once, closes 11871</title>
<updated>2019-05-13T14:30:39+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-05-13T14:29:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0545bfa841540a0d7d7e2953bc205eda64144c2e'/>
<id>urn:sha1:0545bfa841540a0d7d7e2953bc205eda64144c2e</id>
<content type='text'>
function                                             old     new   delta
process_files                                       2235    2246     +11

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sed: in '/regexp/cmd1;//cmd2', cmd2 should use the same regexp as cmd1</title>
<updated>2017-08-23T15:56:03+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2017-08-23T15:56:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9c47c43e07365abe1eda02d69572b9e579b49cec'/>
<id>urn:sha1:9c47c43e07365abe1eda02d69572b9e579b49cec</id>
<content type='text'>
function                                             old     new   delta
get_address                                          165     211     +46

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sed: fix "sed n (flushes pattern space, terminates early)" testcase failure</title>
<updated>2016-08-31T23:59:11+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-08-31T23:59:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=76d72376e0244a5cafd4880cdc623e37d86a75e4'/>
<id>urn:sha1:76d72376e0244a5cafd4880cdc623e37d86a75e4</id>
<content type='text'>
Patch based on work by Dengke Du &lt;dengke.du@windriver.com&gt;

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sed: fix append command to match GNU sed 4.2.1</title>
<updated>2016-05-06T16:25:56+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-05-06T16:25:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af'/>
<id>urn:sha1:f2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af</id>
<content type='text'>
This closes one testcase failure

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sed: understand \n,\r and \t in i and a commands. Closes 8871</title>
<updated>2016-04-24T14:18:03+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-04-24T14:18:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=cbdff15bb78ba9d83be7f6b5087ee665715999b0'/>
<id>urn:sha1:cbdff15bb78ba9d83be7f6b5087ee665715999b0</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sed: make 's///w FILE' actually write to FILE. Closes 8251</title>
<updated>2016-01-24T14:52:16+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-01-24T14:52:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=2a4bba3ce2e00e55e6690fa8ba2607679277eed4'/>
<id>urn:sha1:2a4bba3ce2e00e55e6690fa8ba2607679277eed4</id>
<content type='text'>
function                                             old     new   delta
add_cmd                                             1167    1210     +43

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
