<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell/ash_test, branch stty</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=stty</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=stty'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2016-04-15T20:16:46+00:00</updated>
<entry>
<title>ash: bash-compatible $'...' shouldn't expand in double quotes</title>
<updated>2016-04-15T20:16:46+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2016-04-03T21:43:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=84ba50c32f7dbfccddd5c5ca34d48d97c3f72193'/>
<id>urn:sha1:84ba50c32f7dbfccddd5c5ca34d48d97c3f72193</id>
<content type='text'>
Bash doesn't expand its $'...' construct in double quotes:

   $ echo "$'a\tb'"
   $'a\tb'

Change BusyBox ash to do the same.  This also fixes a problem with
here documents where BusyBox ash gave an incorrect result for:

   $ cat &lt;&lt;EOF
   &gt; '$'
   &gt; EOF
   '$'

Reported-by: Timo Teras &lt;timo.teras@iki.fi&gt;
Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash_test: ignore generated files</title>
<updated>2016-03-22T22:15:24+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2016-03-22T22:15:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b9b7aa1910907f59f1130667fbe7b870087e97f8'/>
<id>urn:sha1:b9b7aa1910907f59f1130667fbe7b870087e97f8</id>
<content type='text'>
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
</entry>
<entry>
<title>ash_test: printenv: fix missing includes</title>
<updated>2016-03-22T22:15:14+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2016-03-22T22:15:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=787972f60b08c34059de65f9ee24febaa50667a2'/>
<id>urn:sha1:787972f60b08c34059de65f9ee24febaa50667a2</id>
<content type='text'>
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
</entry>
<entry>
<title>ash: fix corruption of ${#var} if $var contains UTF-8 characters</title>
<updated>2016-03-22T22:19:29+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2016-03-18T11:29:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3e3bfb896e0dd8a54caad9c6264e2452566b4012'/>
<id>urn:sha1:3e3bfb896e0dd8a54caad9c6264e2452566b4012</id>
<content type='text'>
As reported in bug 8506:

   $ X=abcdÉfghÍjklmnÓpqrstÚvwcyz
   $ echo ${#X}
   abcd26

The result should be 26.

This regression was introduced by:

   &lt;d68d1fb&gt; 2015-05-18 [Ron Yorston]  ash: code shrink around varvalue

The length in characters was being used to discard the contents of
the variable instead of the length in bytes.

URL: https://bugs.busybox.net/8506
Reported-by: Martijn Dekker &lt;martijn@inlv.org&gt;
Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
</entry>
<entry>
<title>ash: add support for bash 'function' keyword</title>
<updated>2015-11-04T18:30:24+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2015-11-03T09:42:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=95ebcf79ff6f8ad21ceacb7bac665fb86c078d84'/>
<id>urn:sha1:95ebcf79ff6f8ad21ceacb7bac665fb86c078d84</id>
<content type='text'>
Where the POSIX shell allows functions to be defined as:

   name () compound-command [ redirections ]

bash adds the alternative syntax:

   function name [()] compound-command [ redirections ]

Implement this in ash's bash compatibility mode.  Most compound
commands work (for/while/until/if/case/[[]]/{}); one exception is:

   function f (echo "no way!")

The other two variants work:

   f() (echo "ok")
   function f() (echo "also ok")

function                                             old     new   delta
parse_command                                       1555    1744    +189
tokname_array                                        232     240      +8
.rodata                                           155612  155566     -46
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 197/-46)           Total: 151 bytes

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush-misc/func_args1.tests: remove "UNFIXED BUG", it does not fail</title>
<updated>2015-11-04T13:50:19+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2015-11-04T13:50:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=bc9bee01f35d6c716c087e82dae5f439de90914b'/>
<id>urn:sha1:bc9bee01f35d6c716c087e82dae5f439de90914b</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: copy function tests from hush testsuite</title>
<updated>2015-11-04T13:48:16+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2015-11-03T09:37:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=85405c80a28509f2f36c0d4fda8693aac7652d9b'/>
<id>urn:sha1:85405c80a28509f2f36c0d4fda8693aac7652d9b</id>
<content type='text'>
Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: add tests for failures of the exec and command builtins</title>
<updated>2015-10-30T21:19:06+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2015-10-30T19:05:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e939856c8724e357b3a7ba878563bfc957605504'/>
<id>urn:sha1:e939856c8724e357b3a7ba878563bfc957605504</id>
<content type='text'>
The exec builtin should return an exit status of 127 if the command
can't be found.  It doesn't:  it returns 2.

If the command builtin is used to source a script that runs a second
script that doesn't exist ash should issue an error.  Instead it seg
faults.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: fix error during recursive processing of here document</title>
<updated>2015-10-29T19:45:36+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2015-10-29T16:44:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=713f07d906d9171953be0c12e2369869855b6ca6'/>
<id>urn:sha1:713f07d906d9171953be0c12e2369869855b6ca6</id>
<content type='text'>
Save the value of the checkkwd flag to prevent it being clobbered
during recursion.

Based on commit ec2c84d from git://git.kernel.org/pub/scm/utils/dash/dash.git
by Herbert Xu.

function                                             old     new   delta
readtoken                                            190     203     +13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 13/0)               Total: 13 bytes

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash tests: make test print test name before it is run</title>
<updated>2015-10-29T19:34:20+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2015-10-29T19:29:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7b14ede049d467e1a6da46ef69b917645e94a6b9'/>
<id>urn:sha1:7b14ede049d467e1a6da46ef69b917645e94a6b9</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
