Loading src/envoirment.cpp +8 −0 Changes for src/envoirment.cpp: 8 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -227,6 +227,14 @@ fresh::Environment::Environment(){ _variables[varname]=entry.substr(eq+1); _exported[varname]=true; } // An applet run directly (/usr/bin/env -> fresh, "#!/usr/bin/env // python3") returns before load() ever fills _path from config.yaml, so // runExternal() searched an empty list and every "env CMD" was "command // not found". Derive _path from the inherited $PATH here; load() still // replaces it for the shell itself. std::map<std::string,std::string>::const_iterator p=_variables.find("PATH"); if(p!=_variables.end()) setVariable("PATH",p->second); } void fresh::Environment::setLastStatus(int status){ Loading Loading
src/envoirment.cpp +8 −0 Changes for src/envoirment.cpp: 8 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -227,6 +227,14 @@ fresh::Environment::Environment(){ _variables[varname]=entry.substr(eq+1); _exported[varname]=true; } // An applet run directly (/usr/bin/env -> fresh, "#!/usr/bin/env // python3") returns before load() ever fills _path from config.yaml, so // runExternal() searched an empty list and every "env CMD" was "command // not found". Derive _path from the inherited $PATH here; load() still // replaces it for the shell itself. std::map<std::string,std::string>::const_iterator p=_variables.find("PATH"); if(p!=_variables.end()) setVariable("PATH",p->second); } void fresh::Environment::setLastStatus(int status){ Loading