Home
last modified time | relevance | path

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

1234567

/titanic_53/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c89 static char *shell; variable
236 shell = getenv("SHELL"); in main()
237 if(shell == 0 || !endsh(shell) || ( in main()
238 !in_dir("/bin",shell) && in main()
239 !in_dir("/usr/bin",shell) && in main()
240 !in_dir("/usr/lbin",shell) && in main()
241 !in_dir("/usr/local/bin",shell))) in main()
242 shell = DEFSHELL; in main()
245 execv(shell,argv); in main()
253 static int endsh(register const char *shell) in endsh() argument
[all …]
/titanic_53/usr/src/cmd/newgrp/
H A Dnewgrp.c87 char *shell, *dir, *name; in main() local
145 if ((shell = getenv("SHELL")) != NULL) { in main()
146 p->pw_shell = shell; in main()
176 if ((shell = (char *)malloc(len)) == NULL) in main()
178 (void) snprintf(shell, len, "-%s", p->pw_shell); in main()
179 simple = strrchr(shell, '/'); in main()
181 *(shell+1) = '\0'; in main()
182 shell = strcat(shell, ++simple); in main()
186 shell = p->pw_shell; in main()
188 (void) execl(p->pw_shell, shell, NULL); in main()
/titanic_53/usr/src/cmd/runat/
H A Drunat.c59 char *shell; in main() local
92 shell = getenv("SHELL"); in main()
93 if (shell == NULL) { in main()
97 shell = "/bin/sh"; in main()
100 (void) execl(shell, shell, NULL); in main()
102 gettext("runat: Failed to exec %s: %s\n"), shell, in main()
/titanic_53/usr/src/contrib/ast/src/lib/libpp/
H A Dgentab.sh36 A1) shell=ksh
40 *) shell=bsh
68 do case $shell in
98 1:?*) case $shell in
179 *) case $shell in
207 case $shell in
219 1:?*) case $shell in
/titanic_53/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmtesc.c59 int shell; in fmtquote() local
69 shell = 0; in fmtquote()
75 shell = 1; in fmtquote()
177 if (singlequote || shell) in fmtquote()
183 if (shell) in fmtquote()
202 …else if (!spaced && !escaped && (isspace(c) || ((flags & FMT_SHELL) || shell) && (strchr("\";~&|()… in fmtquote()
210 buf += shell + !spaced; in fmtquote()
/titanic_53/usr/src/cmd/make/lib/mksh/
H A Ddosys.cc155 register Name shell = getvar(shell_name); in doshell() local
160 if (IS_EQUAL(shell->string_mb, "")) { in doshell()
161 shell = shell_name; in doshell()
163 if ((shellname = strrchr(shell->string_mb, (int) slash_char)) == NULL) { in doshell()
164 shellname = shell->string_mb; in doshell()
206 (void) execve(shell->string_mb, argv, environ); in doshell()
208 shell->string_mb, in doshell()
242 register Name shell = getvar(shell_name); in exec_vp() local
247 if (IS_EQUAL(shell->string_mb, "")) { in exec_vp()
248 shell = shell_name; in exec_vp()
[all …]
H A Dmksh.cc63 static void init_mksh_globals(char *shell);
80 init_mksh_globals(char *shell) in init_mksh_globals() argument
90 dmake_shell = shell; in init_mksh_globals()
/titanic_53/usr/src/contrib/ast/src/cmd/INIT/
H A Dmktest.sh20 : mktest - generate regress or shell regression test scripts
120 regress|shell)
123 *) print -u2 -r -- $command: --style=$OPTARG: regress or shell expected
179 shell) print -u$stdout -r -f ": $QUOTE"$'\n' -- "$*"
195 shell) print -u$stdout -r -f $'set x'
212 shell) print -u$stdout -r -- unset ${!STATE.RESET[@]} ;;
220 shell) print -u$stdout -r -f $'rm -f'
241 shell) print -u$stdout -r -f ": TEST %02d $QUOTE"$'\n' -- $TEST "$*"
428 shell) [[ $UMASK != $UMASK_ORIG ]] && print -u$stdout -r -f "{ umask $UMASK; "
493 if [[ $STYLE == shell ]]
[all …]
H A Diffe.sh400 -) case $shell in
409 echo "$command: your shell botches here documents; this was fixed back in the 80's" >&$stderr
673 *) case $shell in
689 case $shell in
1089 s) set="$set set shell $OPTARG :" ;;
1226 s) set="$set set shell $OPTARG :" ;;
1235 [-s shell-path] [-S[flags]] [-x cross-exec-prefix] [-I dir] [-L dir] [-X dir] [ - ]
1358 then case $shell in
1452 case $shell in
1476 run) case $shell in
[all …]
/titanic_53/usr/src/contrib/ast/src/cmd/ksh93/
H A DDESIGN6 The files nval.h and shell.h are intended to be public
20 The fun directory contains some shell function such as
37 where shell_path is an absolute pathname for the shell to
41 RELEASE file, the ksh93 man file (sh.1) and nval.3 and shell.3
47 bash if the shell is compiled with SHOPT_BASH and the shell
86 15. shell.h is the public interface for shell functions
87 that are documented int shell.3.
101 shell timeout.
104 shell variables.
108 1. args.c contains functions for parsing shell options
[all …]
H A Dsh.memo16 (shell) for the UNIX*
22 is essentially compatible with the System V version of the Bourne shell\*(Rf,
36 shell standard.
39 is related to shell programming.
71 assumes that the reader is already familiar with the Bourne shell.
73 relative to the Bourne shell; both
80 The term "shell" is used to describe a program that provides
87 system shell is a user level program, and not part of
89 anyone can write a new shell or modify an existing one.
93 The most widely available UNIX system shells are the Bourne shell\*(Rf,
[all …]
H A DOBSOLETE90 invocation of the shell.
92 invocations of the shell should
104 The shell environment variable
127 The shell command line option
129 is obsolete. This option cause the shell to exit after reading
150 These options can also be used upon invocation of the shell.
H A DMakefile5 SH := $(PWD:B:/[0-9]*$//:N=ksh*:-ksh) /* name of the shell program */
25 SHOPT_BRACEPAT == 1 /* C-shell {...,...} expansions (, required) */
38 SHOPT_KIA == 1 /* shell information database generation */
H A DPROMO.mm6 The KornShell is a shell programming language,
12 shell "csh". With KSH-93, medium-sized programming tasks can be
13 performed at shell-level without a significant loss in performance.
29 function records commands entered at any shell level and stores
67 than the System V Bourne shell. A major reason for this is
89 an existing command or shell script.
100 field width, and justification to shell variables.
127 invoked by name, rather than as an argument to the shell.
H A DREADME11 the sh directory. However, the shell editing and history routines
12 are in the edit sub-directory. The code for shell built-ins is
14 data tables and messages that are used by the shell. The include
36 BRACEPAT on C-shell type abc{d,e}f style file generation
47 CRNL off <cr><nl> treated as <nl> in shell grammar.
57 KIA off Allow generation of shell cross reference database with -I.
68 PFSH off Compile with support for profile shell.
77 exiting the shell when you don't enter a command. If
95 shell, then you can run the script mamexec < Mamfile to build ksh.
115 To be able to run setuid/setgid shell scripts, or scripts without read
[all …]
/titanic_53/usr/src/cmd/script/
H A Dscript.c48 char *shell; variable
78 shell = getenv("SHELL"); in main()
79 if (shell == NULL) in main()
80 shell = "/bin/sh"; in main()
214 execl(shell, shell, "-i", (char *)0); in doshell()
215 perror(shell); in doshell()
/titanic_53/usr/src/lib/libbsm/common/
H A Daudit_rexd.c148 audit_rexd_fail(msg, hostname, user, uid, gid, shell, cmd) in audit_rexd_fail() argument
154 char *shell; /* login shell of user requesting service */
228 audit_cmd[0] = shell;
267 audit_rexd_success(hostname, user, uid, gid, shell, cmd) in audit_rexd_success() argument
272 char *shell; /* login shell of user requesting service */
305 if (shell == NULL)
306 shell = empty;
346 audit_cmd[0] = shell;
/titanic_53/usr/src/cmd/oamuser/user/
H A Dusermod.c98 static char *shell = NULL; /* shell from command line */ variable
228 shell = optarg;
527 if (shell) {
528 if (REL_PATH(shell)) {
529 errmsg(M_RELPATH, shell);
532 if (strcmp(pstruct->pw_shell, shell) == 0) {
534 shell = NULL;
536 if (stat(shell, &statbuf) < 0 ||
540 errmsg(M_INVALID, shell, "shell");
627 if (shell) { /* shell */
[all …]
H A Duseradd.c117 static char *shell = NULL; /* shell from command line */ variable
220 shell = optarg;
379 if (shell != NULL) {
380 valid_input(SHELL, shell);
381 usrdefs->defshell = shell;
535 if (shell != NULL)
536 valid_input(SHELL, shell);
538 shell = usrdefs->defshell;
595 nargv[argindex++] = shell;
/titanic_53/usr/src/grub/grub-0.97/util/
H A Dgrub-md5-crypt.in39 --grub-shell=FILE use FILE as the grub shell
51 --grub-shell=*)
/titanic_53/usr/src/cmd/refer/
H A DMakefile39 refer5.o refer6.o refer7.o refer8.o shell.o sortbib.o \
81 hunt7.o glue5.o refer3.o shell.o \
87 glue5.o refer0.o shell.o
128 hunt7.c glue5.c refer3.c shell.c \
134 glue5.c refer0.c shell.c $(LDLIBS)
/titanic_53/usr/src/cmd/tip/
H A Dcmdtab.c16 extern void shell(int), getfl(int), tip_sendfile(int), chdirectory(int);
22 { '!', NORM, "shell", shell },
/titanic_53/usr/src/lib/librstp/common/
H A DREADME17 1. In one shell run 'mngr'
22 2. In another shell run bridge instance.
28 separate shell (this way you will be able manage them).
/titanic_53/usr/src/cmd/vi/port/
H A Dex_data.c73 unsigned char shell[ONMSZ] = { variable
116 (unsigned char *)"shell", (unsigned char *)"sh", STRING, 0, 0, shell,
/titanic_53/usr/src/cmd/ast/libshell/common/tests/
H A DREADME.tests23 -c execute test module as compiled shell script only
24 -p execute test module as normal shell script in posix/C only
25 -u execute test module as normal shell script in c.UTF-8 only

1234567