if (getenv("SHELL") != NULL) { shell = getenv("SHELL");
if (getenv_text("SHELL") != NULL) { shell = getenv_text("SHELL");
PUBLIC char *LYSysShell NOARGS{    char *shell = 0;#ifdef DOSPATH    if (getenv("SHELL") != NULL) {	shell = getenv("SHELL");    } else {	shell = (getenv("COMSPEC") == NULL) ? "command.com" : getenv("COMSPEC");    }#else#ifdef __EMX__    if (getenv("SHELL") != NULL) {	shell = getenv("SHELL");    } else {	shell = (getenv("COMSPEC") == NULL) ? "cmd.exe" : getenv("COMSPEC");    }#else#ifdef VMS    shell = "";#else    shell = "exec $SHELL";#endif /* __EMX__ */#endif /* VMS */#endif /* DOSPATH */    return shell;}