Lines Matching defs:shell
202 * Private version of system(3). Use the user's SHELL environment
203 * variable as the shell to execute.
208 static const char *name, *shell;
214 if (shell == NULL) {
215 if ((shell = getenv("SHELL")) == NULL)
216 shell = _PATH_BSHELL;
217 if ((name = strrchr(shell, '/')) == NULL)
218 name = shell;
237 (void)execl(shell, name, "-c", command, (char *)NULL);
238 warn("%s", shell);