mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 20:29:49 -05:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user