Lines Matching refs:shell
260 const char *shell; in loginshell() local
263 shell = pwd->pw_shell; in loginshell()
264 if (*shell == '\0') in loginshell()
265 shell = _PATH_BSHELL; in loginshell()
284 setenv("SHELL", shell, 1); in loginshell()
291 if (asprintf(args, "-%s", shell) < 0) in loginshell()
295 execv(shell, args); in loginshell()
296 err(1, "%s", shell); in loginshell()
302 const char *shell; in doshell() local
304 shell = pwd->pw_shell; in doshell()
305 if (*shell == '\0') in doshell()
306 shell = _PATH_BSHELL; in doshell()
307 execl(shell, shell, (char *)NULL); in doshell()
308 err(1, "%s", shell); in doshell()