Where does the lash get the environment from? In version 0.47 sh.c /etc/profile is commented out: int shell_main(int argc_l, char **argv_l) { int opt, interactive=FALSE; FILE *input = stdin; argc = argc_l; argv = argv_l; //if (argv[0] && argv[0][0] == '-') { // builtin_source("/etc/profile"); //}