From 8749c42829cfdbdd9b52cfff4b4c99aa77c54264 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 2 Jan 2012 11:14:55 +0000 Subject: [PATCH] Treat : as seperater (for goto:label) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3771 --- src/shell/shell_cmds.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index 5146be19..6f013ed7 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -123,11 +123,12 @@ void DOS_Shell::DoCommand(char * line) { char cmd_buffer[CMD_MAXLINE]; char * cmd_write=cmd_buffer; while (*line) { - if (*line==32) break; - if (*line=='/') break; - if (*line=='\t') break; - if (*line=='=') break; - if ((*line=='.') ||(*line =='\\')) { //allow stuff like cd.. and dir.exe cd\kees + if (*line == 32) break; + if (*line == '/') break; + if (*line == '\t') break; + if (*line == '=') break; + if (*line == ':') break; + if ((*line == '.') ||(*line == '\\')) { //allow stuff like cd.. and dir.exe cd\kees *cmd_write=0; Bit32u cmd_index=0; while (cmd_list[cmd_index].name) {