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:
Royce Mitchell III 2005-09-21 01:27:22 +00:00
parent d6475d7b86
commit 48bf871025

View file

@ -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 ( &param[i], &param[i+1], _tcslen(&param[i]) * sizeof(TCHAR) );
}