<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell/ash_test/ash-redir, branch realpath</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=realpath</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=realpath'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2018-04-10T23:15:33+00:00</updated>
<entry>
<title>hush: do not drop backslash from eval 'echo ok\'</title>
<updated>2018-04-10T23:15:33+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2018-04-10T23:15:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=89e9d5534d0e8879803ed9dbb25dff3989c31202'/>
<id>urn:sha1:89e9d5534d0e8879803ed9dbb25dff3989c31202</id>
<content type='text'>
newer bash does not drop it, most other shells too

function                                             old     new   delta
unbackslash                                           39      57     +18
parse_stream                                        2753    2751      -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 18/-2)              Total: 16 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>hush: fix corner cases with exec in empty expansions</title>
<updated>2018-04-05T12:41:21+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2018-04-05T12:41:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=41d8f1081378ec79586d59e7d2a31380b6f95577'/>
<id>urn:sha1:41d8f1081378ec79586d59e7d2a31380b6f95577</id>
<content type='text'>
Cases like these:

var=val exec &gt;redir

var=val `` &gt;redir

function                                             old     new   delta
run_pipe                                            1701    1723     +22
redirect_and_varexp_helper                            56      55      -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 22/-1)              Total: 21 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash,hush: fix "saved" redirected fds still visible in children</title>
<updated>2018-03-28T16:35:07+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2018-03-28T16:35:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9acd63c92cbc4bd0a3ddbb6a61e512eadc29239d'/>
<id>urn:sha1:9acd63c92cbc4bd0a3ddbb6a61e512eadc29239d</id>
<content type='text'>
Based on a patch by Mark Marshall &lt;mark.marshall@omicronenergy.com&gt;

function                                             old     new   delta
dup_CLOEXEC                                            -      49     +49
fcntl_F_DUPFD                                         46       -     -46

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: significant overhaul of redirect saving logic</title>
<updated>2017-07-31T02:21:46+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2017-07-31T02:09:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=035486c7500c09616a6c1040d8e70923532a5c2d'/>
<id>urn:sha1:035486c7500c09616a6c1040d8e70923532a5c2d</id>
<content type='text'>
New code is similar to what hush is doing.
Make CLOSED to -1: same as dash.
popredir() loses "restore" parameter: same as dash.
COPYFD_RESTORE bit is no longer necessary.

This change fixes this interactive bug:

	$ ls -l /proc/$$/fd 10&gt;&amp;-
	ash: can't set tty process group: Bad file descriptor
	ash: can't set tty process group: Bad file descriptor
	[1]+  Done(2)                    ls -l /proc/${\$}/fd 10&gt;&amp;4294967295

function                                             old     new   delta
unwindredir                                           29      27      -2
tryexec                                              154     152      -2
evaltree                                             503     501      -2
evalcommand                                         1369    1367      -2
cmdloop                                              187     185      -2
redirect                                            1029    1018     -11
popredir                                             153     123     -30
need_to_remember                                      36       -     -36
is_hidden_fd                                          68       -     -68
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/7 up/down: 0/-155)           Total: -155 bytes
   text    data     bss     dec     hex filename
 914572     485    6848  921905   e1131 busybox_old
 914553     485    6848  921886   e111e busybox_unstripped

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell: sync redir/* tests</title>
<updated>2017-07-06T19:01:50+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2017-07-06T19:01:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=111cdcf295b4cab78521480f52b295d9ae719263'/>
<id>urn:sha1:111cdcf295b4cab78521480f52b295d9ae719263</id>
<content type='text'>
Note: hush-redir/redir_to_bad_fd.tests currently fails

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: rename redir5.tests (hush has redir5.tests which is different)</title>
<updated>2017-07-06T19:00:19+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2017-07-06T19:00:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1ff1a75710dd0c2d72d1f97f71caebdfeb185f6d'/>
<id>urn:sha1:1ff1a75710dd0c2d72d1f97f71caebdfeb185f6d</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: fix open fds leaking in redirects. Closes 9561</title>
<updated>2017-01-07T09:16:56+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2017-01-07T09:15:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=86584e134eec1a81298149f8c04c77727f6dccb9'/>
<id>urn:sha1:86584e134eec1a81298149f8c04c77727f6dccb9</id>
<content type='text'>
commit e19923f6652a638ac39c84012e97f52cf5a7568e deleted clearredir()
call in shellexec():

	ash: [REDIR] Remove redundant CLOEXEC calls
	Upstream commit:

	Now that we're marking file descriptors as CLOEXEC in savefd, we no longer
	need to close them on exec or in setinputfd.

but it missed one place where we don't set CLOEXEC. Fixing this.

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sh testsuite: sync ash-redir/ and hush-redir/</title>
<updated>2016-10-02T16:32:52+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-02T16:32:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=df303ae11731b07f63b7034a7c141931d7a6fcbb'/>
<id>urn:sha1:df303ae11731b07f63b7034a7c141931d7a6fcbb</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sh testsuite: create hush-redir/* and move files around</title>
<updated>2016-10-02T15:55:51+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-02T15:55:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c4cf542c575068d55368e771abf6c358bfebf5d3'/>
<id>urn:sha1:c4cf542c575068d55368e771abf6c358bfebf5d3</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash testsuite: remove two more inadvertent bashisms</title>
<updated>2016-10-01T15:43:04+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-10-01T15:43:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1b8e0e8adfc28c0b2472121c22f61e1d032805c8'/>
<id>urn:sha1:1b8e0e8adfc28c0b2472121c22f61e1d032805c8</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
