dropEmptyInitThenConcatStringsSep -> concatStringSep: escaped shell args are never empty

This commit is contained in:
Robert Hensing 2024-07-13 01:20:20 +02:00
parent 3b77f13451
commit 837c3612d4

View file

@ -19,6 +19,8 @@
#include <nlohmann/json.hpp>
#include <algorithm>
#include "strings.hh"
using namespace nix;
struct DevelopSettings : Config
@ -608,7 +610,7 @@ struct CmdDevelop : Common, MixEnvironment
std::vector<std::string> args;
for (auto s : command)
args.push_back(shellEscape(s));
script += fmt("exec %s\n", dropEmptyInitThenConcatStringsSep(" ", args));
script += fmt("exec %s\n", concatStringsSep(" ", args));
}
else {