mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2025-08-09 21:25:09 +00:00
fix whitespace
This commit is contained in:
22
command.cpp
22
command.cpp
@@ -142,21 +142,21 @@ void launch_mpw(const Environment &env, const std::vector<std::string> &argv, co
|
|||||||
cargv.push_back(nullptr);
|
cargv.push_back(nullptr);
|
||||||
|
|
||||||
|
|
||||||
// export environment...
|
// export environment...
|
||||||
|
|
||||||
for (const auto &kv : env) {
|
for (const auto &kv : env) {
|
||||||
if (kv.second) { // exported
|
if (kv.second) { // exported
|
||||||
std::string name = "mpw$" + kv.first;
|
std::string name = "mpw$" + kv.first;
|
||||||
setenv(name.c_str(), kv.second.c_str(), 1);
|
setenv(name.c_str(), kv.second.c_str(), 1);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// handle any indirection...
|
// handle any indirection...
|
||||||
fds.dup();
|
fds.dup();
|
||||||
|
|
||||||
execv(mpw_path().c_str(), cargv.data());
|
execv(mpw_path().c_str(), cargv.data());
|
||||||
perror("execvp: ");
|
perror("execvp: ");
|
||||||
exit(EX_OSERR); // raise a signal?
|
exit(EX_OSERR); // raise a signal?
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
Reference in New Issue
Block a user