<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/testsuite, branch su_cmd2</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=su_cmd2</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=su_cmd2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2023-04-17T06:32:52+00:00</updated>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2023-04-17T06:32:52+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-17T06:32:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8cdeb571cfbf3bb6edc44779e46537b072b8cd08'/>
<id>urn:sha1:8cdeb571cfbf3bb6edc44779e46537b072b8cd08</id>
<content type='text'>
</content>
</entry>
<entry>
<title>seq: fix yet another case of negative parameters not working</title>
<updated>2023-04-11T18:29:59+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-04-11T18:29:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=478b5ac2bcdb5014d8e6a6e8d7647b4c599cc1a7'/>
<id>urn:sha1:478b5ac2bcdb5014d8e6a6e8d7647b4c599cc1a7</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>seq: accept negative parameters</title>
<updated>2023-04-10T12:33:20+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-04-10T12:33:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9bc2b6e88474a8ebb50c94f29320d343bd374928'/>
<id>urn:sha1:9bc2b6e88474a8ebb50c94f29320d343bd374928</id>
<content type='text'>
function                                             old     new   delta
seq_main                                             429     476     +47
packed_usage                                       34557   34538     -19
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 47/-19)             Total: 28 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2023-04-09T10:24:09+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-09T10:24:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d9f2ea8628452f787e02dd0e496af612a2e94578'/>
<id>urn:sha1:d9f2ea8628452f787e02dd0e496af612a2e94578</id>
<content type='text'>
</content>
</entry>
<entry>
<title>find: implement -ok</title>
<updated>2023-03-28T16:08:02+00:00</updated>
<author>
<name>David Leonard</name>
<email>d+busybox@adaptive-enterprises.com</email>
</author>
<published>2023-01-29T02:07:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d8a33603801476dd870ea66c36cf7c64d852d674'/>
<id>urn:sha1:d8a33603801476dd870ea66c36cf7c64d852d674</id>
<content type='text'>
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html

  -ok  utility_name  [argument ...] ;
    The -ok primary shall be equivalent to -exec, except that the use
    of a &lt;plus-sign&gt; to punctuate the end of the primary expression
    need not be supported, and find shall request affirmation of the
    invocation of utility_name using the current file as an argument
    by writing to standard error as described in the STDERR section. If
    the response on standard input is affirmative, the utility shall be
    invoked. Otherwise, the command shall not be invoked and the value
    of the -ok operand shall be false.

function                                             old     new   delta
do_exec                                              438     517     +79
parse_params                                        1833    1845     +12
static.params                                        288     292      +4
.rodata                                           100771  100775      +4
packed_usage                                       34543   34541      -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 99/-2)              Total: 97 bytes

Signed-off-by: David Leonard &lt;d+busybox@adaptive-enterprises.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: improve CRLF handling in read</title>
<updated>2023-02-12T08:57:15+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-02-12T08:57:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0f2feac4b7e518e838b80d7b8ceac8f9699ae997'/>
<id>urn:sha1:0f2feac4b7e518e838b80d7b8ceac8f9699ae997</id>
<content type='text'>
Commit deae0c7bf3 (Skip carriage return in read builtin command)
caused all CRs to be removed from input to the read builtin.

Only remove CRs that are part of a CRLF pair.

Adds 64-80 bytes.

(GitHub issue #285)
</content>
</entry>
<entry>
<title>ash: remove CRs from CRLF during field splitting</title>
<updated>2023-02-10T13:21:02+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-02-10T12:54:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d9916c6344c806696554115baa764eea09ca5f08'/>
<id>urn:sha1:d9916c6344c806696554115baa764eea09ca5f08</id>
<content type='text'>
Commit e371e46fa0 (shell: add \r to IFS) added '\r' to the IFS
variable so field splitting would remove carriage returns.

Rather than change IFS, remove CRs preceding LFs in regions
being scanned for field splitting before IFS is applied.  This
prevents free-standing CRs from being removed.

Costs 112-120 bytes.

(GitHub issue #285)
</content>
</entry>
<entry>
<title>ash,make: fix CRLF handling</title>
<updated>2023-01-30T12:24:34+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-01-30T12:24:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b9a1b02dee2b82e4e4a580c446a1e022aa96166d'/>
<id>urn:sha1:b9a1b02dee2b82e4e4a580c446a1e022aa96166d</id>
<content type='text'>
Fix remove_cr() so it only removes CRs which are part of a CRLF
pair, not every CR.

Add a test case for the shell.
</content>
</entry>
<entry>
<title>awk: CRLF handling</title>
<updated>2023-01-30T10:33:59+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-01-30T10:33:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7a537eb71874cd6c8d0e9ab1f906e6466e7f793c'/>
<id>urn:sha1:7a537eb71874cd6c8d0e9ab1f906e6466e7f793c</id>
<content type='text'>
Previous efforts at handling DOS-style line endings in awk have
included commits ee7e00dc5 and 1a3717342.

The use of remove_cr() is unwise:

- It's overzealous, removing all CRs, not just those in CRLF pairs.

- Even if that were fixed awk reads input in chunks. There's a
  remote chance a CRLF might appear at a chunk boundary and be
  missed.

remove_cr() will be fixed separately.  In awk treat all data input
as being in text mode.

Skipping CRs in skip_spaces() is also flawed.  Instead read scripts
in text mode.

Add a couple of test cases.  One of these (awk backslash+CRLF eaten
with no trace) fails without this patch.
</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>
</feed>
