Lines Matching defs:shell
60 "usage: %s [-2CDlNuVv] [-c shell-command] [-f file] [-L socket-name]\n"
70 const char *shell;
72 shell = getenv("SHELL");
73 if (checkshell(shell))
74 return (shell);
84 checkshell(const char *shell)
86 if (shell == NULL || *shell != '/')
88 if (areshell(shell))
90 if (access(shell, X_OK) != 0)
96 areshell(const char *shell)
100 if ((ptr = strrchr(shell, '/')) != NULL)
103 ptr = shell;
243 shell_argv0(const char *shell, int is_login)
248 slash = strrchr(shell, '/');
252 name = shell;
502 * The default shell comes from SHELL or from the user's passwd entry
505 options_set_string(global_s_options, "default-shell", 0, "%s",