x_getenv
if ((ptr = x_getenv("SHELL")) == NULL) {
if ((env = x_getenv("TERM")) == 0) {
if (x_getenv("TERM") == 0) {