mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
always strip '^' (unless it was preceded by an '^' itself), not just if it precedes the redirection symbols - fixes some of my test cases in seta_test.cmd
svn path=/trunk/; revision=17958
This commit is contained in:
parent
d6475d7b86
commit
48bf871025
|
@ -69,7 +69,7 @@ INT cmd_set (LPTSTR cmd, LPTSTR param)
|
|||
/* remove escapes */
|
||||
if ( param[0] ) for ( i = 0; param[i+1]; i++ )
|
||||
{
|
||||
if ( param[i] == '^' && strchr("<|>&^",param[i+1]) )
|
||||
if ( param[i] == '^' )
|
||||
{
|
||||
memmove ( ¶m[i], ¶m[i+1], _tcslen(¶m[i]) * sizeof(TCHAR) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue