usr/src/cmd/bnu/cu.c
906
char *shell;
usr/src/cmd/bnu/cu.c
908
if( (shell = getenv("SHELL")) == NULL)
usr/src/cmd/bnu/cu.c
910
shell = SHELL;
usr/src/cmd/bnu/cu.c
948
(void)execl(shell,shell,(char*) 0,(char*) 0,(char *) 0);
usr/src/cmd/bnu/cu.c
950
(void)execl(shell,"sh","-c",str,(char *) 0);
usr/src/cmd/cmd-inet/usr.bin/ftp/cmdtab.c
129
{ "!", shellhelp, 0, 0, 0, shell },
usr/src/cmd/cmd-inet/usr.bin/ftp/ftp_var.h
265
extern void shell(int argc, char *argv[]);
usr/src/cmd/cmd-inet/usr.bin/telnet/commands.c
3375
{ "!", shellhelp, shell, 0 },
usr/src/cmd/cmd-inet/usr.sbin/in.rexecd.c
138
static char shell[64] = "SHELL=";
usr/src/cmd/cmd-inet/usr.sbin/in.rexecd.c
142
{homedir, shell, (char *)0, username,
usr/src/cmd/cmd-inet/usr.sbin/in.rexecd.c
157
{homedir, shell, "PATH=:/usr/ucb:/bin:/usr/bin", username, 0};
usr/src/cmd/cmd-inet/usr.sbin/in.rexecd.c
436
(void) strncat(shell, pwd->pw_shell, sizeof (shell) - 7);
usr/src/cmd/cmd-inet/usr.sbin/in.rshd.c
1126
shell = (char *)malloc(shell_len);
usr/src/cmd/cmd-inet/usr.sbin/in.rshd.c
1128
if (homedir == NULL || shell == NULL || username == NULL) {
usr/src/cmd/cmd-inet/usr.sbin/in.rshd.c
1133
(void) snprintf(shell, shell_len, "%s%s", shellstr, pwd->pw_shell);
usr/src/cmd/cmd-inet/usr.sbin/in.rshd.c
1145
add_to_envinit(shell);
usr/src/cmd/cmd-inet/usr.sbin/in.rshd.c
393
static char *shell; /* "SHELL=" */
usr/src/cmd/cron/at.c
573
char *shell;
usr/src/cmd/cron/at.c
608
Shell = shell = "/bin/csh";
usr/src/cmd/cron/at.c
610
Shell = shell = "/bin/ksh";
usr/src/cmd/cron/at.c
613
Shell = shell = "/bin/sh";
usr/src/cmd/cron/at.c
617
shell = "$SHELL";
usr/src/cmd/cron/at.c
623
Shell = shell = _PATH_BSHELL;
usr/src/cmd/cron/at.c
669
printf("%s << '...the rest of this file is shell input'\n", shell);
usr/src/cmd/cron/cron.c
1134
struct shared *shell = NULL;
usr/src/cmd/cron/cron.c
1203
if (shell == NULL ||
usr/src/cmd/cron/cron.c
1204
strcmp(&line[cursor], get_obj(shell))) {
usr/src/cmd/cron/cron.c
1205
rel_shared(shell);
usr/src/cmd/cron/cron.c
1206
shell = create_shared_str(&line[cursor]);
usr/src/cmd/cron/cron.c
1279
e->of.ct.shell = dup_shared(shell);
usr/src/cmd/cron/cron.c
1310
rel_shared(shell);
usr/src/cmd/cron/cron.c
197
struct shared *shell; /* shell for this event */
usr/src/cmd/cron/cron.c
2112
rel_shared(e2->of.ct.shell);
usr/src/cmd/cron/cron.c
2513
if (e->of.ct.shell) {
usr/src/cmd/cron/cron.c
2516
sh = (char *)get_obj(e->of.ct.shell);
usr/src/cmd/cron/cron.h
121
extern int isvalid_shell(const char *shell);
usr/src/cmd/cron/funcs.c
221
isvalid_shell(const char *shell)
usr/src/cmd/cron/funcs.c
227
if (strcmp(t, shell) == 0) {
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
114
| inode | ls | override | nprompt | pwd | quit | tag | shell
usr/src/cmd/fs.d/udfs/fsdb/fsdb_yacc.y
454
shell : BANG
usr/src/cmd/login/login.c
227
static char shell[256] = { "SHELL=" };
usr/src/cmd/login/login.c
2285
envinit[basicenv++] = shell;
usr/src/cmd/login/login.c
2286
ENVSTRNCAT(shell, pwd->pw_shell);
usr/src/cmd/login/login.c
2497
if ((envinit[i] == shell) &&
usr/src/cmd/login/login.c
2498
((endptr = strchr(shell, '=')) != NULL))
usr/src/cmd/logins/logins.c
368
char *shell; /* Shell after login (may be null) */
usr/src/cmd/logins/logins.c
454
new->shell = "/sbin/sh";
usr/src/cmd/logins/logins.c
456
new->shell = strdup(pwent->pw_shell);
usr/src/cmd/logins/logins.c
875
current->iwd, current->shell,
usr/src/cmd/logins/logins.c
949
current->shell);
usr/src/cmd/mailx/cmdtab.c
81
"!", C shell, I|STRLIST, 0, 0,
usr/src/cmd/mailx/collect.c
395
shell(&linebuf[2]);
usr/src/cmd/mailx/hdr/def.h
580
extern int shell(char *str);
usr/src/cmd/mailx/names.c
207
char *date, *fname, *shell;
usr/src/cmd/mailx/names.c
289
if ((shell = value("SHELL")) == NOSTR ||
usr/src/cmd/mailx/names.c
290
*shell == '\0')
usr/src/cmd/mailx/names.c
291
shell = SHELL;
usr/src/cmd/mailx/names.c
292
(void) execlp(shell, shell, "-c", fname,
usr/src/cmd/mailx/names.c
294
perror(shell);
usr/src/cmd/make/lib/mksh/dosys.cc
156
Name shell = getvar(shell_name);
usr/src/cmd/make/lib/mksh/dosys.cc
161
if (IS_EQUAL(shell->string_mb, "")) {
usr/src/cmd/make/lib/mksh/dosys.cc
162
shell = shell_name;
usr/src/cmd/make/lib/mksh/dosys.cc
164
if ((shellname = strrchr(shell->string_mb, (int) slash_char)) == NULL) {
usr/src/cmd/make/lib/mksh/dosys.cc
165
shellname = shell->string_mb;
usr/src/cmd/make/lib/mksh/dosys.cc
207
(void) execve(shell->string_mb, argv, environ);
usr/src/cmd/make/lib/mksh/dosys.cc
209
shell->string_mb,
usr/src/cmd/make/lib/mksh/dosys.cc
243
Name shell = getvar(shell_name);
usr/src/cmd/make/lib/mksh/dosys.cc
248
if (IS_EQUAL(shell->string_mb, "")) {
usr/src/cmd/make/lib/mksh/dosys.cc
249
shell = shell_name;
usr/src/cmd/make/lib/mksh/dosys.cc
262
shellname = strrchr(shell->string_mb, (int) slash_char);
usr/src/cmd/make/lib/mksh/dosys.cc
264
shellname = shell->string_mb;
usr/src/cmd/make/lib/mksh/mksh.cc
63
static void init_mksh_globals(char *shell);
usr/src/cmd/make/lib/mksh/mksh.cc
80
init_mksh_globals(char *shell)
usr/src/cmd/make/lib/mksh/mksh.cc
90
dmake_shell = shell;
usr/src/cmd/more/more.c
1308
execute (filename, shell, shell, "-c", shell_line, 0);
usr/src/cmd/more/more.c
1575
if ((shell = getenv("SHELL")) == NULL)
usr/src/cmd/more/more.c
1576
shell = "/usr/bin/sh";
usr/src/cmd/more/more.c
184
char *shell; /* The name of the shell to use */
usr/src/cmd/newgrp/newgrp.c
143
if ((shell = getenv("SHELL")) != NULL) {
usr/src/cmd/newgrp/newgrp.c
144
p->pw_shell = shell;
usr/src/cmd/newgrp/newgrp.c
174
if ((shell = (char *)malloc(len)) == NULL)
usr/src/cmd/newgrp/newgrp.c
176
(void) snprintf(shell, len, "-%s", p->pw_shell);
usr/src/cmd/newgrp/newgrp.c
177
simple = strrchr(shell, '/');
usr/src/cmd/newgrp/newgrp.c
179
*(shell+1) = '\0';
usr/src/cmd/newgrp/newgrp.c
180
shell = strcat(shell, ++simple);
usr/src/cmd/newgrp/newgrp.c
184
shell = p->pw_shell;
usr/src/cmd/newgrp/newgrp.c
186
(void) execl(p->pw_shell, shell, NULL);
usr/src/cmd/newgrp/newgrp.c
85
char *shell, *dir, *name;
usr/src/cmd/newtask/newtask.c
107
char *shell;
usr/src/cmd/newtask/newtask.c
293
shell = safe_malloc(PATH_MAX);
usr/src/cmd/newtask/newtask.c
294
(void) snprintf(shell, PATH_MAX, "-%s", basename(pw->pw_shell));
usr/src/cmd/newtask/newtask.c
296
shell = basename(pw->pw_shell);
usr/src/cmd/newtask/newtask.c
307
targs[0] = shell;
usr/src/cmd/oamuser/user/useradd.c
117
static char *shell = NULL; /* shell from command line */
usr/src/cmd/oamuser/user/useradd.c
220
shell = optarg;
usr/src/cmd/oamuser/user/useradd.c
379
if (shell != NULL) {
usr/src/cmd/oamuser/user/useradd.c
380
valid_input(SHELL, shell);
usr/src/cmd/oamuser/user/useradd.c
381
usrdefs->defshell = shell;
usr/src/cmd/oamuser/user/useradd.c
535
if (shell != NULL)
usr/src/cmd/oamuser/user/useradd.c
536
valid_input(SHELL, shell);
usr/src/cmd/oamuser/user/useradd.c
538
shell = usrdefs->defshell;
usr/src/cmd/oamuser/user/useradd.c
595
nargv[argindex++] = shell;
usr/src/cmd/oamuser/user/usermod.c
228
shell = optarg;
usr/src/cmd/oamuser/user/usermod.c
527
if (shell) {
usr/src/cmd/oamuser/user/usermod.c
528
if (REL_PATH(shell)) {
usr/src/cmd/oamuser/user/usermod.c
529
errmsg(M_RELPATH, shell);
usr/src/cmd/oamuser/user/usermod.c
532
if (strcmp(pstruct->pw_shell, shell) == 0) {
usr/src/cmd/oamuser/user/usermod.c
534
shell = NULL;
usr/src/cmd/oamuser/user/usermod.c
536
if (stat(shell, &statbuf) < 0 ||
usr/src/cmd/oamuser/user/usermod.c
540
errmsg(M_INVALID, shell, "shell");
usr/src/cmd/oamuser/user/usermod.c
627
if (shell) { /* shell */
usr/src/cmd/oamuser/user/usermod.c
629
nargv[argindex++] = shell;
usr/src/cmd/oamuser/user/usermod.c
98
static char *shell = NULL; /* shell from command line */
usr/src/cmd/pg/pg.c
161
static char *shell;
usr/src/cmd/pg/pg.c
1634
if ((shell = getenv("SHELL")) == (char *)NULL)
usr/src/cmd/pg/pg.c
1635
shell = "/usr/bin/sh";
usr/src/cmd/pg/pg.c
795
(void) execl(shell, shell, "-c", cmdptr, 0);
usr/src/cmd/refer/hunt2.c
27
extern void shell();
usr/src/cmd/refer/hunt2.c
90
shell(nitem, hcomp, hexch);
usr/src/cmd/runat/runat.c
100
gettext("runat: Failed to exec %s: %s\n"), shell,
usr/src/cmd/runat/runat.c
57
char *shell;
usr/src/cmd/runat/runat.c
90
shell = getenv("SHELL");
usr/src/cmd/runat/runat.c
91
if (shell == NULL) {
usr/src/cmd/runat/runat.c
95
shell = "/bin/sh";
usr/src/cmd/runat/runat.c
98
(void) execl(shell, shell, NULL);
usr/src/cmd/script/script.c
214
execl(shell, shell, "-i", (char *)0);
usr/src/cmd/script/script.c
215
perror(shell);
usr/src/cmd/script/script.c
48
char *shell;
usr/src/cmd/script/script.c
78
shell = getenv("SHELL");
usr/src/cmd/script/script.c
79
if (shell == NULL)
usr/src/cmd/script/script.c
80
shell = "/bin/sh";
usr/src/cmd/sendmail/src/conf.c
3153
usershellok(user, shell)
usr/src/cmd/sendmail/src/conf.c
3155
char *shell;
usr/src/cmd/sendmail/src/conf.c
3161
if (shell == NULL || shell[0] == '\0' || wordinclass(user, 't') ||
usr/src/cmd/sendmail/src/conf.c
3167
if (strcmp(p, shell) == 0 || strcmp(p, WILDCARD_SHELL) == 0)
usr/src/cmd/sendmail/src/conf.c
3178
if (shell == NULL || shell[0] == '\0' || wordinclass(user, 't') ||
usr/src/cmd/sendmail/src/conf.c
3200
if (strcmp(v, shell) == 0 || strcmp(v, WILDCARD_SHELL) == 0)
usr/src/cmd/sendmail/src/conf.c
3222
if (strcmp(shell, *d) == 0)
usr/src/cmd/sendmail/src/conf.c
3241
if (strcmp(shell, q) == 0 || strcmp(WILDCARD_SHELL, q) == 0)
usr/src/cmd/su/su.c
147
char shell[] = "/usr/bin/sh"; /* default shell */
usr/src/cmd/su/su.c
491
if (shprog[0] != '\0' && strcmp(shell, shprog) != 0) {
usr/src/cmd/su/su.c
502
pshell = shell;
usr/src/cmd/sulogin/sulogin.c
104
static char shell[] = "/sbin/sh";
usr/src/cmd/sulogin/sulogin.c
257
single(shell, NULL);
usr/src/cmd/sulogin/sulogin.c
267
single(shell, NULL);
usr/src/cmd/sulogin/sulogin.c
278
single(shell, NULL);
usr/src/cmd/tip/cmdtab.c
14
extern void shell(int), getfl(int), tip_sendfile(int), chdirectory(int);
usr/src/cmd/tip/cmdtab.c
20
{ '!', NORM, "shell", shell },
usr/src/cmd/vi/port/ex.c
502
if (strlen(cp) < sizeof (shell)) {
usr/src/cmd/vi/port/ex.c
503
(void) strlcpy(shell, cp, sizeof (shell));
usr/src/cmd/vi/port/ex.h
310
extern unsigned char shell[ONMSZ]; /* Copied to be settable */
usr/src/cmd/vi/port/ex_data.c
114
(unsigned char *)"shell", (unsigned char *)"sh", STRING, 0, 0, shell,
usr/src/cmd/vi/port/ex_data.c
71
unsigned char shell[ONMSZ] = {
usr/src/lib/libbsm/common/audit_rexd.c
148
audit_rexd_fail(msg, hostname, user, uid, gid, shell, cmd)
usr/src/lib/libbsm/common/audit_rexd.c
154
char *shell; /* login shell of user requesting service */
usr/src/lib/libbsm/common/audit_rexd.c
228
audit_cmd[0] = shell;
usr/src/lib/libbsm/common/audit_rexd.c
267
audit_rexd_success(hostname, user, uid, gid, shell, cmd)
usr/src/lib/libbsm/common/audit_rexd.c
272
char *shell; /* login shell of user requesting service */
usr/src/lib/libbsm/common/audit_rexd.c
305
if (shell == NULL)
usr/src/lib/libbsm/common/audit_rexd.c
306
shell = empty;
usr/src/lib/libbsm/common/audit_rexd.c
346
audit_cmd[0] = shell;
usr/src/lib/libc/port/stdio/system.c
131
static const char *shell = "sh";
usr/src/lib/libc/port/stdio/system.c
234
argv[0] = (char *)shell;
usr/src/lib/libresolv2/common/irs/irpmarshall.c
229
char *name, *pass, *class, *gecos, *dir, *shell;
usr/src/lib/libresolv2/common/irs/irpmarshall.c
241
name = pass = class = gecos = dir = shell = NULL;
usr/src/lib/libresolv2/common/irs/irpmarshall.c
350
shell = NULL;
usr/src/lib/libresolv2/common/irs/irpmarshall.c
351
if (getfield(&shell, 0, &p, fieldsep) == NULL) {
usr/src/lib/libresolv2/common/irs/irpmarshall.c
363
pw->pw_shell = shell;
usr/src/lib/libresolv2/common/irs/irpmarshall.c
384
if (shell != NULL) free(shell);
usr/src/lib/libxcurses/h/mks.h
401
LEXTERN FILE *__m_popenvp (const char *mode, const char *shell,
usr/src/lib/nsswitch/ad/common/getpwnam.c
58
const char *homedir, const char *shell)
usr/src/lib/nsswitch/ad/common/getpwnam.c
70
argp->key.name, "x", uid, gid, gecos, homedir, shell) + 1;
usr/src/lib/nsswitch/ad/common/getpwnam.c
75
name, domain, "x", uid, gid, gecos, homedir, shell) + 1;
usr/src/lib/nsswitch/ad/common/getpwnam.c
93
argp->key.name, "x", uid, gid, gecos, homedir, shell);
usr/src/lib/nsswitch/ad/common/getpwnam.c
96
name, domain, "x", uid, gid, gecos, homedir, shell);
usr/src/tools/cscope-fast/command.c
316
(void) execute(shell, shell, (char *)NULL);
usr/src/tools/cscope-fast/command.c
663
(void) execute(shell, shell, temp2, (char *)NULL);
usr/src/tools/cscope-fast/global.h
77
extern char *editor, *home, *shell; /* environment variables */
usr/src/tools/cscope-fast/main.c
167
shell = mygetenv("SHELL", SHELL);
usr/src/tools/cscope-fast/main.c
66
char *editor, *home, *shell; /* environment variables */
usr/src/tools/cscope-fast/mypopen.c
75
(void) execlp(shell, basename(shell), "-c", cmd, 0);