<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell/ash_test, branch cng_backend</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=cng_backend</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=cng_backend'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2024-07-13T00:13:28+00:00</updated>
<entry>
<title>hush: do not exit interactive shell on some redirection errors</title>
<updated>2024-07-13T00:13:28+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-07-12T23:47:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=23da5c4b716b92524240c6f81c2e2474c1825cfc'/>
<id>urn:sha1:23da5c4b716b92524240c6f81c2e2474c1825cfc</id>
<content type='text'>
$ echo &gt;&amp;99
hush: dup2(99,1): Bad file descriptor
$ echo &gt;&amp;9999
hush: fcntl(1,F_DUPFD,10000): Invalid argument
$ echo 2&gt;/dev/tty 10&gt;&amp;9999
hush: fcntl(10,F_DUPFD,10000): Invalid argument
$ still alive!_

function                                             old     new   delta
static.setup_redirects                               334     394     +60
.rodata                                           105661  105712     +51
dup_CLOEXEC                                           49      79     +30
save_fd_on_redirect                                  263     277     +14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 155/0)             Total: 155 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush: fix "exec 3&gt;FILE" aborting if 3 is exactly the next free fd</title>
<updated>2024-07-12T22:59:02+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-07-12T22:59:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=14e28c18ca1a0fb87b6c73d5cb7487e80bc6713a'/>
<id>urn:sha1:14e28c18ca1a0fb87b6c73d5cb7487e80bc6713a</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: fix handling of single-quoted strings in pattern substitution</title>
<updated>2024-02-26T15:27:53+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-02-26T15:26:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c5a1be25ba6dd705382ce6c25d96a32f79974c04'/>
<id>urn:sha1:c5a1be25ba6dd705382ce6c25d96a32f79974c04</id>
<content type='text'>
function                                             old     new   delta
subevalvar                                          1576    1588     +12

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush: detect when terminating "done"/"fi" is missing</title>
<updated>2024-02-25T16:53:25+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-02-25T16:50:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=758b21402abc7015cfc54eb21a2e7eead1ecf6ba'/>
<id>urn:sha1:758b21402abc7015cfc54eb21a2e7eead1ecf6ba</id>
<content type='text'>
function                                             old     new   delta
parse_stream                                        2271    2292     +21
.rodata                                           105408  105427     +19
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 40/0)               Total: 40 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell/math: bash-compatible handling of too large numbers</title>
<updated>2023-06-25T15:42:05+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-25T15:42:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c1c267fd36b0fcac8c8871232eecc1e360173990'/>
<id>urn:sha1:c1c267fd36b0fcac8c8871232eecc1e360173990</id>
<content type='text'>
function                                             old     new   delta
parse_with_base                                        -     170    +170
evaluate_string                                     1477    1309    -168
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 170/-168)            Total: 2 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell: typo fix in tests</title>
<updated>2023-06-18T16:49:00+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-18T16:49:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b61fd8ec5a2e3b728c05a72b603fb4255b1022da'/>
<id>urn:sha1:b61fd8ec5a2e3b728c05a72b603fb4255b1022da</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell/math: fix ?: to not evaluate not-taken branches</title>
<updated>2023-06-16T17:51:01+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-16T17:43:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e1279858394a6079be6816cbedaa3f10e74057cc'/>
<id>urn:sha1:e1279858394a6079be6816cbedaa3f10e74057cc</id>
<content type='text'>
This fixes ash-arith-arith-ternary1/2.tests

function                                             old     new   delta
evaluate_string                                     1271    1432    +161
arith_apply                                          968    1000     +32
arith                                                 22      36     +14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 207/0)             Total: 207 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell: document another arithmetic discrepancy with bash</title>
<updated>2023-06-15T10:44:43+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-15T10:44:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=22cb0d573a5cabd24fa648f1a13c22acf661a4a3'/>
<id>urn:sha1:22cb0d573a5cabd24fa648f1a13c22acf661a4a3</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell/math: remove special code to handle a?b?c:d:e, it works without it now</title>
<updated>2023-06-15T09:22:13+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-15T09:19:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=61a4959251667751e424e600c6cb75de39d6b1c3'/>
<id>urn:sha1:61a4959251667751e424e600c6cb75de39d6b1c3</id>
<content type='text'>
The "hack" to virtually parenthesize ? EXPR : made this unnecessary.
The expression is effectively a?(b?(c):d):e and thus b?c:d is evaluated
before continuing with the second :

function                                             old     new   delta
evaluate_string                                     1148    1132     -16

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell/math: fix parsing of ?: and explain why it's parsed that way</title>
<updated>2023-06-15T08:14:43+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-06-15T08:07:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5f56a0388271d2de6cf31af1041bdcb3d11029fc'/>
<id>urn:sha1:5f56a0388271d2de6cf31af1041bdcb3d11029fc</id>
<content type='text'>
This fixes arith-precedence1.tests.

This breaks arith-ternary2.tests again (we now evaluate variables
on not-taken branches). We need a better logic here anyway:
not only bare variables should not evaluate when not-taken:
	1 ? eval_me : do_not_eval
but any (arbitrarily complex) expressions shouldn't
evaluate as well!
	1 ? var_is_set=1 : ((var_is_not_set=2,var2*=4))

function                                             old     new   delta
evaluate_string                                     1097    1148     +51

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