<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/doc/usage/cmd/exit.rst, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>doc: create index entries for commands</title>
<updated>2024-01-17T07:40:19+00:00</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>heinrich.schuchardt@canonical.com</email>
</author>
<published>2024-01-14T13:53:13+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=60971e63e60b36203a5e3cb30deaa05dbd276f82'/>
<id>60971e63e60b36203a5e3cb30deaa05dbd276f82</id>
<content type='text'>
Add the description of CLI commands to the generated index.

Signed-off-by: Heinrich Schuchardt &lt;heinrich.schuchardt@canonical.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the description of CLI commands to the generated index.

Signed-off-by: Heinrich Schuchardt &lt;heinrich.schuchardt@canonical.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd: exit: Fix return value propagation out of environment scripts</title>
<updated>2023-01-11T20:02:24+00:00</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2022-12-20T06:25:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=721307eba0e7d94241698936c58352ee3c6da748'/>
<id>721307eba0e7d94241698936c58352ee3c6da748</id>
<content type='text'>
Make sure the 'exit' command as well as 'exit $val' command exits
from environment scripts immediately and propagates return value
out of those scripts fully. That means the following behavior is
expected:

"
=&gt; setenv foo 'echo bar ; exit 1' ; run foo ; echo $?
bar
1
=&gt; setenv foo 'echo bar ; exit 0' ; run foo ; echo $?
bar
0
=&gt; setenv foo 'echo bar ; exit -2' ; run foo ; echo $?
bar
0
"

As well as the followin behavior:

"
=&gt; setenv foo 'echo bar ; exit 3 ; echo fail'; run foo; echo $?
bar
3
=&gt; setenv foo 'echo bar ; exit 1 ; echo fail'; run foo; echo $?
bar
1
=&gt; setenv foo 'echo bar ; exit 0 ; echo fail'; run foo; echo $?
bar
0
=&gt; setenv foo 'echo bar ; exit -1 ; echo fail'; run foo; echo $?
bar
0
=&gt; setenv foo 'echo bar ; exit -2 ; echo fail'; run foo; echo $?
bar
0
=&gt; setenv foo 'echo bar ; exit ; echo fail'; run foo; echo $?
bar
0
"

Fixes: 8c4e3b79bd0 ("cmd: exit: Fix return value")
Reviewed-by: Hector Palacios &lt;hector.palacios@digi.com&gt;
Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make sure the 'exit' command as well as 'exit $val' command exits
from environment scripts immediately and propagates return value
out of those scripts fully. That means the following behavior is
expected:

"
=&gt; setenv foo 'echo bar ; exit 1' ; run foo ; echo $?
bar
1
=&gt; setenv foo 'echo bar ; exit 0' ; run foo ; echo $?
bar
0
=&gt; setenv foo 'echo bar ; exit -2' ; run foo ; echo $?
bar
0
"

As well as the followin behavior:

"
=&gt; setenv foo 'echo bar ; exit 3 ; echo fail'; run foo; echo $?
bar
3
=&gt; setenv foo 'echo bar ; exit 1 ; echo fail'; run foo; echo $?
bar
1
=&gt; setenv foo 'echo bar ; exit 0 ; echo fail'; run foo; echo $?
bar
0
=&gt; setenv foo 'echo bar ; exit -1 ; echo fail'; run foo; echo $?
bar
0
=&gt; setenv foo 'echo bar ; exit -2 ; echo fail'; run foo; echo $?
bar
0
=&gt; setenv foo 'echo bar ; exit ; echo fail'; run foo; echo $?
bar
0
"

Fixes: 8c4e3b79bd0 ("cmd: exit: Fix return value")
Reviewed-by: Hector Palacios &lt;hector.palacios@digi.com&gt;
Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>doc: usage: Group all shell command docs into cmd/ sub-directory</title>
<updated>2022-03-31T17:06:16+00:00</updated>
<author>
<name>Bin Meng</name>
<email>bmeng.cn@gmail.com</email>
</author>
<published>2022-03-28T03:02:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=34e452dd0252c162242a718ed5287a2af622b7d7'/>
<id>34e452dd0252c162242a718ed5287a2af622b7d7</id>
<content type='text'>
Currently all shell command docs are put in the doc/usage root.
Let's group them into cmd/ sub-directory.

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Heinrich Schuchardt &lt;heinrich.schuchardt@canonical.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently all shell command docs are put in the doc/usage root.
Let's group them into cmd/ sub-directory.

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Heinrich Schuchardt &lt;heinrich.schuchardt@canonical.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
