From b59d0a4d1307caf4a2b424cc081e69cc59c177c6 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 17 Mar 2009 15:11:33 -0400 Subject: BUG: Allow more shell ops in custom commands This extends the set of common shell operators to include "||", "&&", "1>", and "2>". See issue #6868. --- Source/cmLocalGenerator.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 835c886..c1c80a0 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -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) { -- cgit v0.12