| 617 | } |
| 618 | |
| 619 | bool ArgNeedsQuotes(TStringBuf arg) noexcept { |
| 620 | if (arg.empty()) { |
| 621 | return true; |
| 622 | } |
| 623 | return arg.find_first_of(" \"\'\t&()*<>\\`^|") != TString::npos; |
| 624 | } |
| 625 | |
| 626 | TString TShellCommand::TImpl::GetQuotedCommand() const { |
| 627 | TString quoted = Command; /// @todo command itself should be quoted too |
no test coverage detected