mirror of
https://github.com/NixOS/nix
synced 2025-07-03 22:51:47 +02:00
Rename shellEscape -> escapeShellArgAlways
This name is close to the Nixpkgs lib function `escapeShellArg`, making it easier to find. A friendlier function with the same behavior as lib could be added later.
This commit is contained in:
parent
f186491db9
commit
1e5b1d9973
6 changed files with 25 additions and 20 deletions
|
@ -171,7 +171,7 @@ std::string toLower(std::string s)
|
|||
}
|
||||
|
||||
|
||||
std::string shellEscape(const std::string_view s)
|
||||
std::string escapeShellArgAlways(const std::string_view s)
|
||||
{
|
||||
std::string r;
|
||||
r.reserve(s.size() + 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue