<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/editors/sed.c, branch cron_changes</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=cron_changes</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=cron_changes'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2026-02-12T12:58:38+00:00</updated>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2026-02-12T12:58:38+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-02-12T12:50:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=de7b34e8c779d8baca5abba1394284e0b6e87dc6'/>
<id>urn:sha1:de7b34e8c779d8baca5abba1394284e0b6e87dc6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libbb: introduce and use xasprintf_inplace()</title>
<updated>2026-02-05T12:36:27+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2026-02-05T12:36:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=fddd93edbdbf8c5afbfdb3c01d82e082a8a82d1a'/>
<id>urn:sha1:fddd93edbdbf8c5afbfdb3c01d82e082a8a82d1a</id>
<content type='text'>
function                                             old     new   delta
xasprintf_and_free                                     -      49     +49
watch_main                                           269     282     +13
singlemount                                         1313    1315      +2
append_mount_options                                 157     149      -8
ip_port_str                                          122     112     -10
lsblk_main                                           869     858     -11
add_cmd                                             1178    1167     -11
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/4 up/down: 64/-40)             Total: 24 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sed: ensure temporary file is deleted on error</title>
<updated>2025-07-30T11:26:23+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-07-30T11:26:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3ddcebe75d5cb062eb84a8fb92ec0e7554ed3d05'/>
<id>urn:sha1:3ddcebe75d5cb062eb84a8fb92ec0e7554ed3d05</id>
<content type='text'>
It wasn't possible to delete the temporary output file in
case of error on Windows because it was open.

Close the file before trying to unlink it.

Adds 16 bytes.

(GitHub issue #509)
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2024-01-05T11:17:37+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-01-05T11:17:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=49edb26faaddb81e6333e7891715ce13301aed09'/>
<id>urn:sha1:49edb26faaddb81e6333e7891715ce13301aed09</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sed: check errors writing file with sed -i</title>
<updated>2024-01-01T23:58:56+00:00</updated>
<author>
<name>Dominique Martinet</name>
<email>dominique.martinet@atmark-techno.com</email>
</author>
<published>2023-09-19T08:11:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5dc9ece3b9e87af0dcb01449821ac827391ac116'/>
<id>urn:sha1:5dc9ece3b9e87af0dcb01449821ac827391ac116</id>
<content type='text'>
sed would currently not error if write failed when modifying a file.

This can be reproduced with the following 'script':
$ sudo mount -t tmpfs tmpfs -o size=1M /tmp/m
$ sudo chmod 777 /tmp/m
$ echo foo &gt; /tmp/m/foo
$ dd if=/dev/zero of=/tmp/m/fill bs=4k
dd: error writing '/tmp/m/fill': No space left on device
256+0 records in
255+0 records out
1044480 bytes (1.0 MB, 1020 KiB) copied, 0.00234567 s, 445 MB/s
$ busybox sed -i -e 's/.*/bar/' /tmp/m/foo
$ echo $?
0
$ cat /tmp/m/foo
&lt;empty&gt;

new behaviour:
$ echo foo &gt; /tmp/m/foo
$ ./busybox sed -i -e 's/.*/bar/' /tmp/m/foo
sed: write error
$ echo $?
4
$ cat /tmp/m/foo
foo

function                                             old     new   delta
sed_main                                             754     801     +47
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 47/0)               Total: 47 bytes
   text	   data	    bss	    dec	    hex	filename
  75727	   2510	   1552	  79789	  137ad	busybox_old
  75774	   2510	   1552	  79836	  137dc	busybox_unstripped

Signed-off-by: Dominique Martinet &lt;dominique.martinet@atmark-techno.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2023-01-05T08:56:27+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-01-05T08:56:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e5e4a2fec5435192d1672e6db2f335cb5e89f877'/>
<id>urn:sha1:e5e4a2fec5435192d1672e6db2f335cb5e89f877</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sed: fix double-free in FEATURE_CLEAN_UP=y configs</title>
<updated>2023-01-02T16:05:55+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-01-02T16:05:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9b2d766e0ecb222d25a43333287835452e43f8a9'/>
<id>urn:sha1:9b2d766e0ecb222d25a43333287835452e43f8a9</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge busybox into merge</title>
<updated>2022-02-09T09:05:39+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2022-02-09T09:03:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=492d0a7492a57fe8f02c766e25960b0ce0d88759'/>
<id>urn:sha1:492d0a7492a57fe8f02c766e25960b0ce0d88759</id>
<content type='text'>
Fix conflicts in reset and ash.

Redefine the new safe_read_key() as a reference to read_key().

Disable SHA256_HWACCEL.
</content>
</entry>
<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>
</feed>
