Remove the "LPTSTR cmd" argument to internal commands; there's no need for a command to be told its own name. It was only used in two places:

- a hack in cmd_mkdir that was already obsolete a decade ago
- to distinguish "echo" from "echo.", but that is the wrong way to implement this anyway. There's nothing particularly special about the period, "echo" is just one of those commands that is lenient about where its parameters begin, and when it echos a line, the first character (usually a space, but in the case of "echo." a period) is skipped.

svn path=/trunk/; revision=35647
This commit is contained in:
Jeffrey Morlan 2008-08-25 23:22:03 +00:00
parent c9b3cf161b
commit c49ed3a82c
46 changed files with 133 additions and 185 deletions

View file

@ -129,7 +129,7 @@ static BOOL ParseTime (LPTSTR s)
}
INT cmd_time (LPTSTR cmd, LPTSTR param)
INT cmd_time (LPTSTR param)
{
LPTSTR *arg;
INT argc;