Allow command /Cdir
Fix quoting so that command /c mount d "/tmp/a b" works This breaks command /c "dir", but this doesn't work on real DOS either. Let's hope everything still works. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3728
This commit is contained in:
parent
8abf23aa8d
commit
6fc206193e
3 changed files with 35 additions and 1 deletions
|
@ -285,7 +285,7 @@ void DOS_Shell::RunInternal(void)
|
|||
void DOS_Shell::Run(void) {
|
||||
char input_line[CMD_MAXLINE] = {0};
|
||||
std::string line;
|
||||
if (cmd->FindStringRemain("/C",line)) {
|
||||
if (cmd->FindStringRemainBegin("/C",line)) {
|
||||
strcpy(input_line,line.c_str());
|
||||
char* sep = strpbrk(input_line,"\r\n"); //GTA installer
|
||||
if (sep) *sep = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue