static void var(core::String& name, core::String& value) { if(core::nil == value) { auto result = ::unsetenv(name.ascii()); core::certify(!result); } else { auto result = ::setenv(name.ascii(), value.ascii(), true); core::certify(!result); } }
static core::String var(core::String& name) { auto env = ::getenv(name.ascii()); return env ? core::String(env) : core::nil; }
static core::int64 execute(core::String& command) { return ::system(command.ascii()); }