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:
parent
ecb0f3af55
commit
b59d0a4d13
|
@ -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, "||") == 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, "2>&1") == 0 ||
|
||||||
strcmp(str, "1>&2") == 0)
|
strcmp(str, "1>&2") == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue