Lines Matching refs:sh
53 register char* sh;
62 if ((sh = getenv("SHELL")) && *sh == '/' && strmatch(sh, "*/(sh|*[!cC]sh)*([[:digit:]])?(-+([.[:alnum:]]))?(.exe)"))
66 if (stat(sh, &st))
68 if (ru != st.st_uid && !strmatch(sh, "?(/usr)?(/local)/?([ls])bin/?([[:lower:]])sh?(.exe)"))
81 s = sh;
90 if (s != sh)
102 return sh;
105 if (!(sh = val))
107 if (!*(sh = astconf("SH", NiL, NiL)) || *sh != '/' || eaccess(sh, X_OK) || !(sh = strdup(sh)))
108 sh = "/bin/sh";
109 val = sh;
111 return sh;