Fixed bug parsing redirections

svn path=/trunk/; revision=2297
This commit is contained in:
Phillip Susi 2001-10-14 18:30:56 +00:00
parent 34fca92d6d
commit 718510b28a

View file

@ -85,8 +85,8 @@ INT GetRedirection (LPTSTR s, LPTSTR ifn, LPTSTR ofn, LPTSTR efn, LPINT lpnFlags
{ {
/* input redirection */ /* input redirection */
*lpnFlags |= INPUT_REDIRECTION; *lpnFlags |= INPUT_REDIRECTION;
while (_istspace (*sp)) do sp++;
sp++; while( _istspace (*sp) );
/* copy file name */ /* copy file name */
while (*sp && !IsRedirection (*sp) && !_istspace (*sp)) while (*sp && !IsRedirection (*sp) && !_istspace (*sp))