MCPcopy Create free account
hub / github.com/catboost/catboost / ArgNeedsQuotes

Function ArgNeedsQuotes

util/system/shellcommand.cpp:619–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

GetQuotedCommandMethod · 0.85

Calls 2

emptyMethod · 0.45
find_first_ofMethod · 0.45

Tested by

no test coverage detected