BUG: Allow more shell ops in custom commands

This extends the set of common shell operators to include "||", "&&",
"1>", and "2>".  See issue #6868.
This commit is contained in:
Brad King 2009-03-17 15:11:33 -04:00
parent ecb0f3af55
commit b59d0a4d13
1 changed files with 4 additions and 0 deletions

View File

@ -2713,7 +2713,11 @@ static bool cmLocalGeneratorIsShellOperator(const char* str)
strcmp(str, "<<") == 0 ||
strcmp(str, ">>") == 0 ||
strcmp(str, "|") == 0 ||
strcmp(str, "||") == 0 ||
strcmp(str, "&&") == 0 ||
strcmp(str, "&>") == 0 ||
strcmp(str, "1>") == 0 ||
strcmp(str, "2>") == 0 ||
strcmp(str, "2>&1") == 0 ||
strcmp(str, "1>&2") == 0)
{