Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 989 → Rev 988

/svarcom/trunk/command.c
138,8 → 138,7
}
 
if (*cmdline != '/') {
nls_output(0,6); /* "Invalid parameter" */
output(": ");
output("Invalid parameter: ");
outputnl(cmdline);
goto SKIP_TO_NEXT_ARG;
}
175,21 → 174,20
break;
 
case '?':
nls_outputnl(1,0); /* "Starts the SvarCOM command interpreter" */
outputnl("Starts the SvarCOM command interpreter");
outputnl("");
nls_outputnl(1,1); /* "COMMAND /E:nnn [/[C|K] [/P] [/D] command]" */
outputnl("COMMAND /E:nnn [/[C|K] [/P] [/D] command]");
outputnl("");
nls_outputnl(1,2); /* "/D Skip AUTOEXEC.BAT processing (makes sense only with /P)" */
nls_outputnl(1,3); /* "/E:nnn Sets the environment size to nnn bytes" */
nls_outputnl(1,4); /* "/P Makes the new command interpreter permanent and run AUTOEXEC.BAT" */
nls_outputnl(1,5); /* "/C Executes the specified command and returns" */
nls_outputnl(1,6); /* "/K Executes the specified command and continues running" */
outputnl("/D Skip AUTOEXEC.BAT processing (makes sense only with /P)");
outputnl("/E:nnn Sets the environment size to nnn bytes");
outputnl("/P Makes the new command interpreter permanent and run AUTOEXEC.BAT");
outputnl("/C Executes the specified command and returns");
outputnl("/K Executes the specified command and continues running");
exit(1);
break;
 
default:
nls_output(0,2); /* invalid switch */
output(": /");
output("Invalid switch: /");
outputnl(cmdline);
break;
}
772,7 → 770,7
parse_argv(&cfg);
rmod = rmod_install(cfg.envsiz, BUFFER, BUFFER_len);
if (rmod == NULL) {
nls_outputnl_err(2,1); /* "FATAL ERROR: rmod_install() failed" */
outputnl("ERROR: rmod_install() failed");
return(1);
}
/* copy flags to rmod's storage (and enable ECHO) */
787,7 → 785,7
if (rmod->flags & FLAG_EXEC_AND_QUIT) sayonara(rmod);
/* */
if (rmod->version != BYTE_VERSION) {
nls_outputnl_err(2,0);
outputnl("SVARCOM VERSION CHANGED. SYSTEM HALTED. PLEASE REBOOT YOUR COMPUTER.");
_asm {
HALT:
hlt
881,7 → 879,7
rmod_inputbuf[2] = '\r'; /* string terminator */
rmod_inputbuf[3] = 0xCA; /* trailing signature */
rmod_inputbuf[4] = 0xFE; /* trailing signature */
nls_outputnl_err(2,2); /* "stack overflow detected, command history flushed" */
outputnl("SvarCOM: stack overflow detected, command history flushed (this is not a bug)");
}
/* interactive mode: display prompt (if echo enabled) and wait for user
* command line */
936,7 → 934,7
if ((rmod->bat != NULL) && (rmod->bat->nextline == 0)) goto SKIP_NEWLINE;
/* run_as_external() does not return on success, if I am still alive then
* external command failed to execute */
nls_outputnl(0,5); /* "Bad command or file name" */
outputnl("Bad command or file name");
continue;
}