1
0
Fork 0

Treat : as seperater (for goto:label)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3771
This commit is contained in:
Peter Veenstra 2012-01-02 11:14:55 +00:00
parent 5062d2f4ad
commit 8749c42829

View file

@ -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) {