From 20a6b42f1c6728c222960f53c9e4ec74524285fe Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 30 Jul 2002 09:51:26 +0000 Subject: [PATCH] Illegal command displays the command Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@96 --- ChangeLog | 2 +- src/dosbox.lang | 2 +- src/shell/shell_misc.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f7f9bda1..fe845bdc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,4 +2,4 @@ - fixed compilation error on FreeBSD when #disable_joystick was defined - int10_writechar has been updated to move the cursor position. - changed the basedir routines to use the current working dir instead of argv[0]. This will fix and brake things :) - + - illegal command, now displays the command diff --git a/src/dosbox.lang b/src/dosbox.lang index 2a68c7ff..783083cd 100644 --- a/src/dosbox.lang +++ b/src/dosbox.lang @@ -71,5 +71,5 @@ The DOSBox Team Drive %c does not exist! . :SHELL_EXECUTE_ILLEGAL_COMMAND -Illegal command +Illegal command: %s . diff --git a/src/shell/shell_misc.cpp b/src/shell/shell_misc.cpp index 1d003c35..bb939ad9 100644 --- a/src/shell/shell_misc.cpp +++ b/src/shell/shell_misc.cpp @@ -138,7 +138,7 @@ void DOS_Shell::Execute(char * name,char * args) { /* Check for a full name */ fullname=Which(name); if (!fullname) { - WriteOut(MSG_Get("SHELL_EXECUTE_ILLEGAL_COMMAND")); + WriteOut(MSG_Get("SHELL_EXECUTE_ILLEGAL_COMMAND"),name); return; } if (strcasecmp(strrchr(fullname, '.'), ".bat") == 0) {