Symbol: shell
bin/ksh/c_sh.c
467
rv = shell(s, false);
bin/ksh/main.c
413
shell(s, true); /* doesn't return */
bin/ksh/main.c
479
i = shell(s, false);
bin/ksh/main.c
498
r = shell(s, false);
bin/ksh/proto.h
170
int shell ARGS((Source *volatile, int volatile));
bin/rcp/rcp.c
104
const char *shell;
bin/rcp/rcp.c
145
sp = getservbyname(shell = "shell", "tcp");
bin/rcp/rcp.c
147
errx(1, "%s/tcp: unknown service", shell);
dist/pf/usr.sbin/authpf/authpf.c
136
shell = login_getcapstr(lc, "shell", pw->pw_shell,
dist/pf/usr.sbin/authpf/authpf.c
139
shell = pw->pw_shell;
dist/pf/usr.sbin/authpf/authpf.c
143
if (strcmp(shell, PATH_AUTHPF_SHELL)) {
dist/pf/usr.sbin/authpf/authpf.c
146
if (shell != pw->pw_shell)
dist/pf/usr.sbin/authpf/authpf.c
147
free(shell);
dist/pf/usr.sbin/authpf/authpf.c
151
if (shell != pw->pw_shell)
dist/pf/usr.sbin/authpf/authpf.c
152
free(shell);
dist/pf/usr.sbin/authpf/authpf.c
86
char *shell;
distrib/utils/more/os.c
127
if ((shell = getenv("SHELL")) != NULL && *shell != '\0')
distrib/utils/more/os.c
130
cmd = shell;
distrib/utils/more/os.c
134
shell, cmd);
distrib/utils/more/os.c
83
char *shell;
games/atc/input.c
358
char *shell, *base;
games/atc/input.c
363
if ((shell = getenv("SHELL")) != NULL)
games/atc/input.c
365
base = strrchr(shell, '/');
games/atc/input.c
367
base = shell;
games/atc/input.c
370
(void)execl(shell, base, (char *) 0);
games/rogue/machdep.c
474
md_shell(const char *shell)
games/rogue/machdep.c
484
execl(shell, shell, (char *)NULL);
games/warp/sig.c
82
char *shell = getenv("SHELL");
games/warp/sig.c
85
if (!*shell)
games/warp/sig.c
86
shell = "/bin/sh";
games/warp/sig.c
87
execl(shell,shell,0);
libexec/ftpd/ftpd.c
980
const char *cp, *shell;
libexec/ftpd/ftpd.c
982
if ((shell = pw->pw_shell) == NULL || *shell == 0)
libexec/ftpd/ftpd.c
983
shell = _PATH_BSHELL;
libexec/ftpd/ftpd.c
985
if (strcmp(cp, shell) == 0)
libexec/rexecd/rexecd.c
359
(void)strlcat(shell, pwd->pw_shell, sizeof(shell));
libexec/rexecd/rexecd.c
93
static char shell[PATH_MAX + 1] = "SHELL=";
libexec/rexecd/rexecd.c
95
static char *envinit[] = { homedir, shell, path, username, logname, 0 };
sbin/init/init.c
651
const char *shell = INIT_BSHELL;
sbin/init/init.c
718
"Enter pathname of shell or RETURN for %s: ", shell);
sbin/init/init.c
730
shell = altshell;
sbin/init/init.c
751
(void)execv(shell, __UNCONST(argv));
sbin/init/init.c
752
emergency("can't exec `%s' for single user: %m", shell);
usr.bin/apply/apply.c
208
static const char *name, *shell;
usr.bin/apply/apply.c
214
if (shell == NULL) {
usr.bin/apply/apply.c
215
if ((shell = getenv("SHELL")) == NULL)
usr.bin/apply/apply.c
216
shell = _PATH_BSHELL;
usr.bin/apply/apply.c
217
if ((name = strrchr(shell, '/')) == NULL)
usr.bin/apply/apply.c
218
name = shell;
usr.bin/apply/apply.c
237
(void)execl(shell, name, "-c", command, (char *)NULL);
usr.bin/apply/apply.c
238
warn("%s", shell);
usr.bin/finger/finger.h
51
char *shell; /* user's shell */
usr.bin/finger/lprint.c
192
(void)printf("\tShell: %-s\n", *pn->shell ? pn->shell : _PATH_BSHELL);
usr.bin/finger/util.c
408
pn->shell = strdup(pw->pw_shell);
usr.bin/ftp/cmdtab.c
190
{ "!", H(shellhelp), 0, 0, 0, CMPL0 shell },
usr.bin/ftp/extern.h
231
void shell(int, char **);
usr.bin/login/login.c
164
char *shell = NULL;
usr.bin/login/login.c
605
if ((shell = login_getcapstr(lc, "shell", NULL, NULL)) != NULL) {
usr.bin/login/login.c
606
if ((shell = strdup(shell)) == NULL) {
usr.bin/login/login.c
610
pwd->pw_shell = shell;
usr.bin/login/login_pam.c
115
char *shell = NULL;
usr.bin/login/login_pam.c
574
shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell);
usr.bin/login/login_pam.c
575
if (*shell == '\0')
usr.bin/login/login_pam.c
576
shell = pwd->pw_shell;
usr.bin/login/login_pam.c
578
if ((pwd->pw_shell = strdup(shell)) == NULL) {
usr.bin/mail/cmdtab.c
91
{ "!", shell, 0, CMP(xF) T|I|STRLIST, 0, 0 },
usr.bin/mail/collect.c
517
(void)shell(&linebuf[2]);
usr.bin/mail/extern.h
115
int shell(void *);
usr.bin/mail/lex.c
648
(void)shell(cp + 1);
usr.bin/make/job.c
1068
escCmd = shell->hasErrCtl ? NULL : EscapeShellDblQuot(xcmd);
usr.bin/make/job.c
1071
if (job->echo && run && shell->hasEchoCtl)
usr.bin/make/job.c
1073
else if (shell->hasErrCtl)
usr.bin/make/job.c
1087
if (!shell->hasErrCtl && shell->runChkTmpl != NULL &&
usr.bin/make/job.c
1088
shell->runChkTmpl[0] != '\0') {
usr.bin/make/job.c
1098
cmdTemplate = escCmd[0] == shell->commentChar ||
usr.bin/make/job.c
1100
? shell->runIgnTmpl
usr.bin/make/job.c
1101
: shell->runChkTmpl;
usr.bin/make/job.c
1668
if ((shell->errFlag != NULL && shell->errFlag[0] != '-') ||
usr.bin/make/job.c
1669
(shell->echoFlag != NULL && shell->echoFlag[0] != '-')) {
usr.bin/make/job.c
1681
!job->ignerr && shell->errFlag != NULL
usr.bin/make/job.c
1682
? shell->errFlag : "",
usr.bin/make/job.c
1683
job->echo && shell->echoFlag != NULL
usr.bin/make/job.c
1684
? shell->echoFlag : "");
usr.bin/make/job.c
1690
if (!job->ignerr && shell->errFlag != NULL) {
usr.bin/make/job.c
1691
argv[argc] = UNCONST(shell->errFlag);
usr.bin/make/job.c
1694
if (job->echo && shell->echoFlag != NULL) {
usr.bin/make/job.c
1695
argv[argc] = UNCONST(shell->echoFlag);
usr.bin/make/job.c
1829
if (shell->noPrint == NULL || shell->noPrint[0] == '\0')
usr.bin/make/job.c
1833
while ((ep = strstr(p, shell->noPrint)) != NULL && ep < endp) {
usr.bin/make/job.c
1840
p = ep + shell->noPrintLen;
usr.bin/make/job.c
2090
shellName = shell->name;
usr.bin/make/job.c
2111
if (shell->errFlag == NULL)
usr.bin/make/job.c
2112
shell->errFlag = "";
usr.bin/make/job.c
2113
if (shell->echoFlag == NULL)
usr.bin/make/job.c
2114
shell->echoFlag = "";
usr.bin/make/job.c
2115
if (shell->hasErrCtl && shell->errFlag[0] != '\0') {
usr.bin/make/job.c
2117
strcmp(shell->errFlag, &shellErrFlag[1]) != 0) {
usr.bin/make/job.c
2122
shellErrFlag = str_concat2("-", shell->errFlag);
usr.bin/make/job.c
2133
return shell->newline;
usr.bin/make/job.c
2397
shell = sh;
usr.bin/make/job.c
2417
shell = sh;
usr.bin/make/job.c
2419
shell = bmake_malloc(sizeof *shell);
usr.bin/make/job.c
2420
*shell = newShell;
usr.bin/make/job.c
2426
if (shell->echoOn != NULL && shell->echoOff != NULL)
usr.bin/make/job.c
2427
shell->hasEchoCtl = true;
usr.bin/make/job.c
2429
if (!shell->hasErrCtl) {
usr.bin/make/job.c
2430
if (shell->echoTmpl == NULL)
usr.bin/make/job.c
2431
shell->echoTmpl = "";
usr.bin/make/job.c
2432
if (shell->runIgnTmpl == NULL)
usr.bin/make/job.c
2433
shell->runIgnTmpl = "%s\n";
usr.bin/make/job.c
477
static Shell *shell = &shells[DEFSHELL_INDEX];
usr.bin/make/job.c
868
if (shell->hasEchoCtl)
usr.bin/make/job.c
869
ShellWriter_WriteLine(wr, shell->echoOff);
usr.bin/make/job.c
875
ShellWriter_WriteFmt(wr, shell->echoTmpl, escCmd);
usr.bin/make/job.c
881
if (shell->hasEchoCtl)
usr.bin/make/job.c
882
ShellWriter_WriteLine(wr, shell->echoOn);
usr.bin/make/job.c
899
ShellWriter_WriteLine(wr, shell->errOff);
usr.bin/make/job.c
909
ShellWriter_WriteLine(wr, shell->errOn);
usr.bin/make/job.c
936
*inout_cmdTemplate = shell->runIgnTmpl;
usr.bin/make/job.c
952
else if (shell->hasErrCtl)
usr.bin/make/job.c
954
else if (shell->runIgnTmpl != NULL && shell->runIgnTmpl[0] != '\0') {
usr.bin/newgrp/newgrp.c
139
shell = getenv("SHELL");
usr.bin/newgrp/newgrp.c
140
if (shell != NULL)
usr.bin/newgrp/newgrp.c
141
pwd->pw_shell = shell;
usr.bin/newgrp/newgrp.c
147
shell = pwd->pw_shell;
usr.bin/newgrp/newgrp.c
189
shell = sbuf;
usr.bin/newgrp/newgrp.c
192
(void)execl(pwd->pw_shell, shell, NULL);
usr.bin/newgrp/newgrp.c
68
char *shell, sbuf[MAXPATHLEN + 2];
usr.bin/resize/resize.c
324
char *shell;
usr.bin/resize/resize.c
392
shell = x_basename(ptr);
usr.bin/resize/resize.c
396
if (!strcmp(shell_list[i].name, shell)) {
usr.bin/script/script.c
311
const char *shell;
usr.bin/script/script.c
317
shell = getenv("SHELL");
usr.bin/script/script.c
318
if (shell == NULL)
usr.bin/script/script.c
319
shell = _PATH_BSHELL;
usr.bin/script/script.c
320
execl(shell, shell, "-i", NULL);
usr.bin/script/script.c
321
warn("execl `%s'", shell);
usr.bin/su/su.c
113
const char *user, *shell, *avshell;
usr.bin/su/su.c
131
shell = class = NULL;
usr.bin/su/su.c
199
shell = shellbuf;
usr.bin/su/su.c
201
shell = _PATH_BSHELL;
usr.bin/su/su.c
308
shell = pwd->pw_shell;
usr.bin/su/su.c
311
shell = _PATH_BSHELL;
usr.bin/su/su.c
315
if ((p = strrchr(shell, '/')) != NULL)
usr.bin/su/su.c
318
avshell = shell;
usr.bin/su/su.c
381
(void)setenv("SHELL", shell, 1);
usr.bin/su/su.c
439
(void)execv(shell, np);
usr.bin/su/su.c
440
err(EXIT_FAILURE, "%s", shell);
usr.bin/su/su_pam.c
108
const char *user, *shell, *avshell;
usr.bin/su/su_pam.c
132
shell = class = NULL;
usr.bin/su/su_pam.c
193
shell = shellbuf;
usr.bin/su/su_pam.c
195
shell = _PATH_BSHELL;
usr.bin/su/su_pam.c
322
shell = pwd->pw_shell;
usr.bin/su/su_pam.c
325
shell = _PATH_BSHELL;
usr.bin/su/su_pam.c
329
if ((p = strrchr(shell, '/')) != NULL)
usr.bin/su/su_pam.c
332
avshell = shell;
usr.bin/su/su_pam.c
504
(void)setenv("SHELL", shell, 1);
usr.bin/su/su_pam.c
561
(void)execv(shell, np);
usr.bin/su/su_pam.c
562
err(EXIT_FAILURE, "%s", shell);
usr.bin/telnet/commands.c
2313
{ "!", shellhelp, shell, 0 },
usr.bin/telnet/externs.h
206
int shell(int, char *[]);
usr.bin/tip/cmdtab.c
43
{ '!', NORM, "shell", shell },
usr.bin/tip/tip.h
290
void shell(char);
usr.sbin/chroot/chroot.c
118
const char *shell;
usr.sbin/chroot/chroot.c
191
if ((shell = getenv("SHELL")) == NULL)
usr.sbin/chroot/chroot.c
192
shell = _PATH_BSHELL;
usr.sbin/chroot/chroot.c
193
execlp(shell, shell, "-i", NULL);
usr.sbin/chroot/chroot.c
194
err(1, "%s", shell);