ShellManager: catch exception thrown by env var functors
This commit is contained in:
parent
a83731c8e1
commit
02b01e2f0a
|
@ -109,10 +109,14 @@ String ShellManager::pipe(const String& input,
|
|||
pair.first); });
|
||||
|
||||
if (env_var != m_env_vars.end())
|
||||
{
|
||||
try
|
||||
{
|
||||
String value = env_var->second(name, context);
|
||||
setenv(("kak_" + name).c_str(), value.c_str(), 1);
|
||||
}
|
||||
catch (runtime_error&) {}
|
||||
}
|
||||
}
|
||||
|
||||
++it;
|
||||
|
|
Loading…
Reference in New Issue
Block a user