Lines Matching defs:shell
68 char *cmd, *name, *p, *shell, *slashp, *tmpshell;
113 * Figure out the shell and name arguments to pass to execl()
114 * in exec_shell(). Always malloc() shell and just set name
115 * to point at the last part of shell if there are any backslashes,
118 * shell with it.
120 shell = name = NULL;
122 shell = (tmpshell != NULL) ? strdup(tmpshell) : strdup(_PATH_BSHELL);
123 if (shell == NULL)
125 slashp = strrchr(shell, '/');
126 name = (slashp != NULL) ? slashp + 1 : shell;
206 if (exec_shell(sbuf_data(cmdbuf), shell, name))
215 free(shell);
221 * Execute a shell command using passed use_shell and use_name