| 624 | } |
| 625 | |
| 626 | TString TShellCommand::TImpl::GetQuotedCommand() const { |
| 627 | TString quoted = Command; /// @todo command itself should be quoted too |
| 628 | for (const auto& argument : Arguments) { |
| 629 | // Don't add unnecessary quotes. It's especially important for the windows with a 32k command line length limit. |
| 630 | if (Options_.QuoteArguments && ArgNeedsQuotes(argument)) { |
| 631 | ::ShellQuoteArgSp(quoted, argument); |
| 632 | } else { |
| 633 | quoted.append(" ").append(argument); |
| 634 | } |
| 635 | } |
| 636 | return quoted; |
| 637 | } |
| 638 | |
| 639 | #if defined(_unix_) |
| 640 | void TShellCommand::TImpl::OnFork(TPipes& pipes, sigset_t oldmask, char* const* argv, char* const* envp, const std::function<void()>& afterFork) const { |
no test coverage detected