| 232 | } |
| 233 | |
| 234 | static bool cmOutputConverterIsShellOperator(cm::string_view str) |
| 235 | { |
| 236 | static std::set<cm::string_view> const shellOperators{ |
| 237 | "<", ">", "<<", ">>", "|", "||", "&&", "&>", "1>", "2>", "2>&1", "1>&2" |
| 238 | }; |
| 239 | return (shellOperators.count(str) != 0); |
| 240 | } |
| 241 | |
| 242 | std::string cmOutputConverter::EscapeForShell(cm::string_view str, |
| 243 | bool makeVars, bool forEcho, |
no test coverage detected
searching dependent graphs…