Lines Matching defs:shell
65 char NS[] = "newgrp: You have no shell";
87 char *shell, *dir, *name;
145 if ((shell = getenv("SHELL")) != NULL) {
146 p->pw_shell = shell;
176 if ((shell = (char *)malloc(len)) == NULL)
178 (void) snprintf(shell, len, "-%s", p->pw_shell);
179 simple = strrchr(shell, '/');
181 *(shell+1) = '\0';
182 shell = strcat(shell, ++simple);
186 shell = p->pw_shell;
188 (void) execl(p->pw_shell, shell, NULL);