Home
last modified time | relevance | path

Searched refs:shell (Results 1 – 25 of 136) sorted by relevance

123456

/original-bsd/local/toolchest/ksh/sh/
H A Dsuid_exec.c70 static char *shell; variable
186 if(shell==0 || !endsh(shell) || (
190 shell = DEFSHELL;
193 execv(shell,argv);
201 static int endsh(shell) in endsh() argument
202 register char *shell; in endsh()
204 while(*shell)
205 shell++;
206 if(*--shell != 'h' || *--shell != 's')
218 register char *shell;
[all …]
/original-bsd/usr.sbin/chroot/
H A Dchroot.c36 char *shell; local
58 if (!(shell = getenv("SHELL")))
59 shell = _PATH_BSHELL;
60 execlp(shell, shell, "-i", NULL);
61 err(1, "%s", shell);
/original-bsd/usr.bin/f77/libU77/
H A Dsystem_.c58 char *shname, *shell; local
60 if ((shell = getenv("SHELL")) == NULL)
61 shell = "/bin/sh";
63 if (shname = rindex(shell, '/'))
66 shname = shell;
69 execl(shell, shname, "-c", s, (char *)0);
/original-bsd/share/man/man0/
H A Dcshcmd1 csh(1) alias: shell macros.
15 csh(1) eval: re-evaluate shell data.
16 csh(1) exec: overlay shell with specified command.
17 csh(1) exit: leave shell.
34 csh(1) popd: pop shell directory stack.
35 csh(1) pushd: push shell directory stack.
38 csh(1) set: change value of shell variable.
43 csh(1) suspend: suspend a shell, resuming its superior.
51 csh(1) unset: discard shell variables.
54 csh(1) @: arithmetic on shell variables.
/original-bsd/usr.bin/apply/
H A Dapply.c166 static char *name, *shell; local
172 if (shell == NULL) {
173 if ((shell = getenv("SHELL")) == NULL)
174 shell = _PATH_BSHELL;
175 if ((name = strrchr(shell, '/')) == NULL)
176 name = shell;
189 execl(shell, name, "-c", command, NULL);
190 err(1, "%s", shell);
/original-bsd/usr.bin/su/
H A Dsu.c55 char *p, **g, *user, *shell, *username, *cleanenv[2], *nargv[4], **np; local
112 shell = strcpy(shellbuf, pwd->pw_shell);
114 shell = _PATH_BSHELL;
159 shell = pwd->pw_shell;
162 shell = _PATH_BSHELL;
168 if (p = strrchr(shell, '/'))
171 p = shell;
196 (void)setenv("SHELL", shell, 1);
215 execv(shell, np);
216 err(1, "%s", shell);
/original-bsd/old/athena/ksu/
H A Dksu.c89 char *user, *shell, *username, *cleanenv[2], *nargv[4], **np; local
152 shell = strcpy(shellbuf, pwd->pw_shell);
154 shell = "/bin/sh";
271 shell = pwd->pw_shell;
274 shell = "/bin/sh";
280 if (p = rindex(shell, '/'))
283 p = shell;
322 (void)setenv("SHELL", shell, 1);
345 execv(shell, np);
/original-bsd/usr.bin/script/
H A Dscript.c176 char *shell; in doshell() local
178 shell = getenv("SHELL"); in doshell()
179 if (shell == NULL) in doshell()
180 shell = _PATH_BSHELL; in doshell()
185 execl(shell, "sh", "-i", NULL); in doshell()
186 perror(shell); in doshell()
/original-bsd/usr.bin/more/
H A Dos.c49 char *shell, *getenv(); local
93 if ((shell = getenv("SHELL")) != NULL && *shell != '\0')
96 cmd = shell;
99 (void)sprintf(cmdbuf, "%s -c \"%s\"", shell, cmd);
/original-bsd/local/toolchest/ksh/
H A DRELEASE25 invoked by name rather than as an argument to the shell. For this
40 7. The shell now accepts decimal values as numerical constants when
62 12. The shell now uses the LINES parameter to control printing of
117 ksh-i. The script will continue to run under the SVR2 shell.
121 it is invoked by the shell.
129 b. A shell invoked as sh -c 'program <<!
163 will no longer cause the shell to dump core.
172 since the shell no longer uses this signal internally for
181 o. A shell invoked as sh -c "
188 shell to die after the unexpected eof message.
[all …]
H A Dsh.memo63 oriented shell
81 .IR See-shell \*(Rf
152 The Form shell\*(Rf
172 .IR Korn shell
180 Form shell
588 any shell script
909 The shell variables
1261 shell procedure.
1285 the shell will run
1295 make this shell
[all …]
H A DREADME13 shell scripts, or scripts without read permission, then it must be installed
31 the number of seconds that the shell will wait for input before it
33 set the shell parameter TMOUT to shorten the timeout interval but not to
49 and must be changed if you install this shell as /bin/sh.
52 which assume that the shell will strip off the 8th bit will fail. In
54 to % when invoking a shell. The best solution is to fix the vi command.
60 install this shell as /bin/sh you may have to make /bin/pwd a setuid
62 change directories and then invoke shell procedures. Also, if you install
63 this shell as /bin/sh some setuid programs may break because the set -p
71 the shell with the layers program, then you must fix a bug in layers.c
H A DMakefile31 ARK = lib.a /* name for library for common shell procedures */
33 SH = ksh /* name of the shell program */
34 JSH = jsh /* name of jobs control shell for shell layers */
53 SUID_EXEC = suid_exec /* set to null to disallow suid/sgid shell scripts */
/original-bsd/usr.bin/tip/
H A Dcmdtab.c14 extern int shell(), getfl(), sendfile(), chdirectory();
19 { '!', NORM, "shell", shell },
/original-bsd/usr.bin/ex/
H A Dex_data.c40 char shell[ONMSZ] = variable
82 "shell", "sh", STRING, 0, 0, shell,
/original-bsd/usr.bin/at/atrun/
H A Datrun.c142 char shell[4]; /* shell to run the job under */ local
177 (fscanf(infile,"# shell: %3s\n",shell) != 1) ||
342 sprintf(whichshell,"/bin/%s",shell);
343 execl(whichshell,shell,runfile, 0);
349 fprintf(stderr, "%s: Can't execl shell\n",shell);
/original-bsd/usr.bin/mail/
H A Dcmd3.c26 shell(str) in shell() function
30 char *shell; local
36 if ((shell = value("SHELL")) == NOSTR)
37 shell = _PATH_CSHELL;
38 (void) run_command(shell, 0, -1, -1, "-c", cmd, NOSTR);
53 char *shell; local
55 if ((shell = value("SHELL")) == NOSTR)
56 shell = _PATH_CSHELL;
57 (void) run_command(shell, 0, -1, -1, NOSTR, NOSTR, NOSTR);
H A Dfio.c309 register char *cp, *shell; local
353 if ((shell = value("SHELL")) == NOSTR)
354 shell = _PATH_CSHELL;
355 pid = start_command(shell, 0, -1, pivec[1], "-c", cmdbuf, NOSTR);
/original-bsd/libexec/rexecd/
H A Drexecd.c64 char shell[64] = "SHELL="; variable
67 {homedir, shell, path, username, 0};
193 strncat(shell, pwd->pw_shell, sizeof(shell)-7);
/original-bsd/games/rogue/
H A Dmachdep.c523 md_shell(shell) in md_shell() argument
524 char *shell; in md_shell()
533 execl(shell, shell, 0);
/original-bsd/bin/sh/
H A DTOUR4 does not represent the current state of the shell. It is provided anyway
5 since it provides helpful information for how the shell is structured,
6 but be warned that things have changed -- the current shell is
42 x = 2; /* executed when the shell does a longjmp
47 x = 3; /* executed when the shell runs a shell procedure */
85 with other exceptions. After these cleanup actions, the shell
86 can interpret a shell procedure itself without exec'ing a new
87 copy of the shell.
125 called from main to parse the shell arguments when the shell is
151 (AT&T has been maintaining the Bourne shell for more than ten
[all …]
/original-bsd/old/init/
H A Dinit.c30 char shell[] = _PATH_BSHELL; variable
215 execl(shell, minus, (char *)0); in single()
216 perror(shell); in single()
249 execl(shell, shell, runc, (char *)0);
251 execl(shell, shell, runc, "autoboot", (char *)0);
/original-bsd/old/adb/adb.tahoe/
H A Dformat.c263 shell() in shell() function
269 STRING getenv(), shell = getenv("SHELL"); in shell()
274 if (shell == 0) in shell()
275 shell = "/bin/sh"; in shell()
284 *lp=0; execl(shell, "sh", "-c", argp, 0); in shell()
/original-bsd/old/adb/adb.vax/
H A Dformat.c274 shell() in shell() function
279 STRING getenv(), shell = getenv("SHELL"); in shell()
284 if (shell == 0) in shell()
285 shell = "/bin/sh"; in shell()
294 *lp=0; execl(shell, "sh", "-c", argp, 0); in shell()
/original-bsd/games/trek/
H A Dshell.c26 shell() in shell() function

123456