mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 18:43:30 +00:00
[CMD] Syntax errors during parsing of batch parameters expansion, or FOR and IF commands, are fatal, and batch execution should stop.
- To this purpose use the ParseErrorEx() that correctly sets the bParseError flag, and return the partially-parsed command so that it gets echoed as well for diagnostics purposes (Windows-compatible). - Any other parameters specified after (or before) the '/?' switch for the FOR and IF commands, are considered fatal syntax errors as well, thus we employ the ParseErrorEx() as well.
This commit is contained in:
parent
6eb1cae348
commit
495c82ccde
3 changed files with 11 additions and 3 deletions
|
@ -59,7 +59,7 @@ INT cmd_if(LPTSTR param)
|
|||
return 0;
|
||||
}
|
||||
|
||||
error_syntax(param);
|
||||
ParseErrorEx(param);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue