# HG changeset patch # User Darkvater # Date 1115053559 0 # Node ID b49e71451de534b4a3935b378adf384880092944 # Parent ac65066ebfeb0e02965e2e6c344613e98545c17e (svn r2247) - Fix (regression): executing scripts now works (remove newline character(s)). - Fix: getting help for an alias works - Fix: '|' is an unprintable character, replace it with '\' diff -r ac65066ebfeb -r b49e71451de5 console.c --- a/console.c Mon May 02 16:02:24 2005 +0000 +++ b/console.c Mon May 02 17:05:59 2005 +0000 @@ -1023,6 +1023,7 @@ for (cmdptr = cmdstr; *cmdptr != '\0'; *cmdptr++) { if (!IsValidAsciiChar(*cmdptr)) { IConsoleError("command contains malformed characters, aborting"); + IConsolePrintF(_iconsole_color_error, "ERROR: command was: '%s'", cmdstr); return; } } diff -r ac65066ebfeb -r b49e71451de5 console_cmds.c --- a/console_cmds.c Mon May 02 16:02:24 2005 +0000 +++ b/console_cmds.c Mon May 02 17:05:59 2005 +0000 @@ -193,7 +193,7 @@ const char *file; if (argc == 0) { - IConsoleHelp("Load a game by name or index. Usage: 'load '"); + IConsoleHelp("Load a game by name or index. Usage: 'load '"); return true; } @@ -223,7 +223,7 @@ int i; if (argc == 0) { - IConsoleHelp("List all the files in the current dir via console. Usage: 'ls | dir'"); + IConsoleHelp("List all the files in the current dir via console. Usage: 'ls \\ dir'"); return true; } @@ -245,7 +245,7 @@ const char *file; if (argc == 0) { - IConsoleHelp("Change the dir via console. Usage: 'cd '"); + IConsoleHelp("Change the dir via console. Usage: 'cd '"); return true; } @@ -605,6 +605,7 @@ DEF_CONSOLE_CMD(ConExec) { char cmdline[ICON_CMDLN_SIZE]; + char *cmdptr; if (argc == 0) { IConsoleHelp("Execute a local script file. Usage: 'exec