set %errorlevel% for rem
Modified: trunk/reactos/subsys/system/cmd/redir.c
--- trunk/reactos/subsys/system/cmd/redir.c 2005-07-06 17:18:48 UTC (rev 16460) +++ trunk/reactos/subsys/system/cmd/redir.c 2005-07-06 19:13:24 UTC (rev 16461) @@ -61,6 +61,7 @@
TCHAR * line = s;
+
while (_istspace (*line)) line++; @@ -71,8 +72,9 @@
*ifn=('\0'); *ofn=('\0'); *efn=_T('\0');
+ nErrorLevel = 9009;
return 1;
- }
+ }
#endif /* find and remove all the redirections first */ while (*sp)