<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell/ash_test/ash-misc/exitcode_trap7.tests, branch long_paths</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=long_paths</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=long_paths'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2021-09-07T00:25:52+00:00</updated>
<entry>
<title>hush: fix set -n to act immediately, not just after run_list()</title>
<updated>2021-09-07T00:25:52+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2021-09-07T00:23:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e53c7dbafc78948e5c0d8d8ccb0bdcd9f936c62e'/>
<id>urn:sha1:e53c7dbafc78948e5c0d8d8ccb0bdcd9f936c62e</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: eval: Do not cache value of eflag in evaltree</title>
<updated>2021-09-07T00:01:03+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2021-09-06T23:54:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f415e21a7dce1d4f4b760fddfaba85c551681e11'/>
<id>urn:sha1:f415e21a7dce1d4f4b760fddfaba85c551681e11</id>
<content type='text'>
Upsteam commit:

    Date: Mon, 17 May 2021 15:19:23 +0800
    eval: Do not cache value of eflag in evaltree

    Patrick Brünn &lt;P.Bruenn@beckhoff.com&gt; wrote:
    &gt; Since we are migrating to Debian bullseye, we discovered a new behavior
    &gt; with our scripts, which look like this:
    &gt;&gt;cleanup() {
    &gt;&gt;        set +e
    &gt;&gt;        rmdir ""
    &gt;&gt;}
    &gt;&gt;set -eu
    &gt;&gt;trap 'cleanup' EXIT INT TERM
    &gt;&gt;echo 'Hello world!'
    &gt;
    &gt; With old dash v0.5.10.2 this script would return 0 as we expected it.
    &gt; But since commit 62cf6955f8abe875752d7163f6f3adbc7e49ebae it returns
    &gt; the last exit code of our cleanup function.
    ...
    Thanks for the report.  This is actually a fairly old bug with
    set -e that's just been exposed by the exit status change.  What's
    really happening is that cleanup itself is triggering a set -e
    exit incorrectly because evaltree cached the value of eflag prior
    to the function call.

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