[ros-diffs] [greatlrd] 16566: fix echo osd 1>text: bug now it
should pipe instead it is printing text out text on the
screen. need to found the second bug now. but now this pipe
are implement.
greatlrd at svn.reactos.com
greatlrd at svn.reactos.com
Thu Jul 14 22:26:41 CEST 2005
fix echo osd 1>text: bug now it should pipe instead it is printing text
out text on the screen. need to found the second bug now. but now this
pipe are implement.
Modified: trunk/reactos/subsys/system/cmd/redir.c
_____
Modified: trunk/reactos/subsys/system/cmd/redir.c
--- trunk/reactos/subsys/system/cmd/redir.c 2005-07-14 19:19:09 UTC
(rev 16565)
+++ trunk/reactos/subsys/system/cmd/redir.c 2005-07-14 20:26:37 UTC
(rev 16566)
@@ -90,7 +90,7 @@
*dp++ = *sp++;
}
else if ((*sp == _T('<')) || (*sp == _T('>')) ||
- (*sp == _T('2')) || (*sp == _T('&')))
+ (*sp == _T('1')) || (*sp == _T('2')) ||
(*sp == _T('&')))
{
/* MS-DOS ignores multiple redirection symbols
and uses the last */
/* redirection, so we'll emulate that and not
check */
@@ -128,7 +128,7 @@
*ofn++ = *sp++;
*ofn = _T('\0');
}
- else if (*sp == _T('2'))
+ else if ((*sp == _T('1')) || (*sp == _T('2')))
{
/* error redirection */
sp++;
@@ -147,7 +147,7 @@
}
else
{
- /* no redirection!! copy the '2'
character! */
+ /* no redirection!! copy the '1'
or '2' character! */
sp--;
*dp++ = *sp++;
continue;
@@ -198,6 +198,7 @@
else
*dp++ = *sp++;
}
+
*dp++ = _T('\0');
*dp = _T('\0');
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050714/52d82ceb/attachment.html
More information about the Ros-diffs
mailing list