<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 542: "@echo off" command make "-c exit" and "-exit" option be ignored</title><link href="https://sourceforge.net/p/dosbox/bugs/542/" rel="alternate"/><link href="https://sourceforge.net/p/dosbox/bugs/542/feed.atom" rel="self"/><id>https://sourceforge.net/p/dosbox/bugs/542/</id><updated>2020-11-11T21:51:42.841000Z</updated><subtitle>Recent changes to 542: "@echo off" command make "-c exit" and "-exit" option be ignored</subtitle><entry><title>#542 "@echo off" command make "-c exit" and "-exit" option be ignored</title><link href="https://sourceforge.net/p/dosbox/bugs/542/?limit=25#0517" rel="alternate"/><published>2020-11-11T21:51:42.841000Z</published><updated>2020-11-11T21:51:42.841000Z</updated><author><name>Mathias</name><uri>https://sourceforge.net/u/mkende/</uri></author><id>https://sourceforge.net5ae65c987a592a7db956393431c20ca5411e2ce6</id><summary type="html">&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;</summary></entry><entry><title>#542 "@echo off" command make "-c exit" and "-exit" option be ignored</title><link href="https://sourceforge.net/p/dosbox/bugs/542/?limit=25#90bc" rel="alternate"/><published>2020-11-11T19:55:07.693000Z</published><updated>2020-11-11T19:55:07.693000Z</updated><author><name>Qbix</name><uri>https://sourceforge.net/u/qbix79/</uri></author><id>https://sourceforge.net9de41dd499a615b829aeb769d9bd03c9c73cd4a7</id><summary type="html">&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;</summary></entry><entry><title>"@echo off" command make "-c exit" and "-exit" option be ignored</title><link href="https://sourceforge.net/p/dosbox/bugs/542/" rel="alternate"/><published>2020-11-11T19:27:20.926000Z</published><updated>2020-11-11T19:27:20.926000Z</updated><author><name>Mathias</name><uri>https://sourceforge.net/u/mkende/</uri></author><id>https://sourceforge.net47a16678865a8ee9eac77f68c60ef3554e3fb0cc</id><summary type="html">&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;</summary></entry></feed>