Fix echo hello /?
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3524
This commit is contained in:
parent
bf5257415d
commit
905e6836b3
1 changed files with 2 additions and 1 deletions
|
@ -262,7 +262,6 @@ void DOS_Shell::CMD_RENAME(char * args){
|
|||
}
|
||||
|
||||
void DOS_Shell::CMD_ECHO(char * args){
|
||||
HELP("ECHO");
|
||||
if (!*args) {
|
||||
if (echo) { WriteOut(MSG_Get("SHELL_CMD_ECHO_ON"));}
|
||||
else { WriteOut(MSG_Get("SHELL_CMD_ECHO_OFF"));}
|
||||
|
@ -280,6 +279,8 @@ void DOS_Shell::CMD_ECHO(char * args){
|
|||
echo=true;
|
||||
return;
|
||||
}
|
||||
if(strcasecmp(pbuffer,"/?")==0) { HELP("ECHO"); }
|
||||
|
||||
args++;//skip first character. either a slash or dot or space
|
||||
size_t len = strlen(args); //TODO check input of else ook nodig is.
|
||||
if(len && args[len - 1] == '\r') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue