<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 542: "@echo off" command make "-c exit" and "-exit" option be ignored</title><link>https://sourceforge.net/p/dosbox/bugs/542/</link><description>Recent changes to 542: "@echo off" command make "-c exit" and "-exit" option be ignored</description><atom:link href="https://sourceforge.net/p/dosbox/bugs/542/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 11 Nov 2020 21:51:42 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dosbox/bugs/542/feed.rss" rel="self" type="application/rss+xml"/><item><title>#542 "@echo off" command make "-c exit" and "-exit" option be ignored</title><link>https://sourceforge.net/p/dosbox/bugs/542/?limit=25#0517</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks, I’m not sure I understand why this is expected but at least the workaround is already good.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mathias</dc:creator><pubDate>Wed, 11 Nov 2020 21:51:42 -0000</pubDate><guid>https://sourceforge.net5ae65c987a592a7db956393431c20ca5411e2ce6</guid></item><item><title>#542 "@echo off" command make "-c exit" and "-exit" option be ignored</title><link>https://sourceforge.net/p/dosbox/bugs/542/?limit=25#90bc</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;that would be correct.&lt;br/&gt;
you probably want &lt;br/&gt;
-c "call c:\test.bat" &lt;br/&gt;
But that is kinda how DOS works, not really a quirk of DOSBox&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Qbix</dc:creator><pubDate>Wed, 11 Nov 2020 19:55:07 -0000</pubDate><guid>https://sourceforge.net9de41dd499a615b829aeb769d9bd03c9c73cd4a7</guid></item><item><title>"@echo off" command make "-c exit" and "-exit" option be ignored</title><link>https://sourceforge.net/p/dosbox/bugs/542/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have a game which, when launched through a command line like &lt;code&gt;DOSBox.exe -c GAME.EXE -c exit&lt;/code&gt; will "eat" away the &lt;code&gt;exit&lt;/code&gt; command that (DOSBox will not quit when the game is exited, same if I use &lt;code&gt;-exit&lt;/code&gt;). It took me some time to track the cause to the start script of the game that is using an "&lt;a class="user-mention" href="/u/echo/"&gt;@echo&lt;/a&gt; off" command. After this command execute, for some reasons passing &lt;code&gt;-c exit&lt;/code&gt; on the DOSBox command line no longer works.&lt;/p&gt;
&lt;p&gt;I’m pretty sure that this is also the cause of the issues in the following threads&lt;br/&gt;
&lt;a href="https://www.vogons.org/viewtopic.php?f=31&amp;amp;t=8843" rel="nofollow"&gt;https://www.vogons.org/viewtopic.php?f=31&amp;amp;t=8843&lt;/a&gt;&lt;br/&gt;
&lt;a href="https://www.vogons.org/viewtopic.php?f=31&amp;amp;t=66560" rel="nofollow"&gt;https://www.vogons.org/viewtopic.php?f=31&amp;amp;t=66560&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Steps to reproduce:&lt;br/&gt;
1. Create a &lt;code&gt;test.bat&lt;/code&gt; file that contains the one line &lt;code&gt;@echo off&lt;/code&gt;.&lt;br/&gt;
2. On the command line, from the directory where the file was created, start DOSBox with the following command: &lt;code&gt;DOSBox.exe -c "mount C ." -c "C:\TEST.BAT" -c exit&lt;/code&gt; (note, I tested this on Windows 10 with DOSBox 0.74-3, I don’t know if this can be reproduced on Linux and the command line might need some escaping there).&lt;/p&gt;
&lt;p&gt;What should happen:&lt;br/&gt;
DOSBox starts, executes the .bat file and then exits.&lt;/p&gt;
&lt;p&gt;What actually happens:&lt;br/&gt;
DOSBox starts, executes the .bat file and then does &lt;strong&gt;not&lt;/strong&gt; exit.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mathias</dc:creator><pubDate>Wed, 11 Nov 2020 19:27:20 -0000</pubDate><guid>https://sourceforge.net47a16678865a8ee9eac77f68c60ef3554e3fb0cc</guid></item></channel></rss>