/titanic_51/usr/src/lib/libshell/common/sh/ |
H A D | suid_exec.c | 89 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_51/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | suid_exec.c | 22 * This is a program to execute 'execute only' and suid/sgid shell scripts. 35 * user and group id correctly, and then exec the shell. 89 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() 253 endsh(register const char * shell) endsh() argument 271 in_dir(register const char * dir,register const char * shell) in_dir() argument [all...] |
/titanic_51/usr/src/cmd/newgrp/ |
H A D | newgrp.c | 65 char NS[] = "newgrp: You have no shell"; 87 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, in main() [all...] |
/titanic_51/usr/src/cmd/runat/ |
H A D | runat.c | 34 * when command is not specified an interactive shell is started 59 char *shell; in main() local 92 shell = getenv("SHELL"); in main() 93 if (shell == NULL) { in main() 96 "runat: shell not found, using /bin/sh\n")); 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() 126 * This is done so that the shell wil in main() [all...] |
/titanic_51/usr/src/lib/libpp/common/ |
H A D | gentab.sh | 36 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_51/usr/src/contrib/ast/src/lib/libpp/ |
H A D | gentab.sh | 36 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_51/usr/src/lib/libast/common/string/ |
H A D | fmtesc.c | 54 int shell; in fmtquote() local 64 shell = 0; in fmtquote() 70 shell = 1; in fmtquote() 166 if (singlequote || shell) in fmtquote() 172 if (shell) in fmtquote() 191 …else if (!spaced && !escaped && (isspace(c) || ((flags & FMT_SHELL) || shell) && (strchr("\";~&|()… in fmtquote() 199 buf += shell + !spaced; in fmtquote()
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | fmtesc.c | 59 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("\";~&|()<>[]*?", c) || c == '#' && (b == f || isspace(*(b - 1)))))) in fmtquote() 210 buf += shell + !spaced; in fmtquote()
|
/titanic_51/usr/src/cmd/make/lib/mksh/ |
H A D | dosys.cc | 133 * Used to run command lines that include shell meta-characters. 134 * The make macro SHELL is supposed to contain a path to the shell. 145 * shell_name The Name "SHELL", used to get the path to shell 155 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 in doshell() 242 register Name shell = getvar(shell_name); exec_vp() local [all...] |
H A D | mksh.cc | 63 static void init_mksh_globals(char *shell); 80 init_mksh_globals(char *shell) in init_mksh_globals() argument 85 MBSTOWCS(wcs_buffer, shell); in init_mksh_globals() 90 dmake_shell = shell; in init_mksh_globals()
|
/titanic_51/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | mktest.sh | 20 : mktest - generate regress or shell regression test scripts 48 [+shell?Standalone test shell script.] 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) prin [all...] |
H A D | iffe.sh | 387 echo "$command: your shell botches here documents; this was fixed back in the 80's" >&$stderr 400 -) case $shell in 409 echo "$command: your shell botches here documents; this was fixed back in the 80's" >&$stderr 420 *) case $shell in 429 echo "$command: your shell botches here documents; this was fixed back in the 80's" >&$stderr 653 $RANDOM)shell=bsh 658 ?*) shell=bash ;; 659 *) shell=ksh ;; 673 *) case $shell in 689 case $shell i [all...] |
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/ |
H A D | DESIGN | 6 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 timeou [all...] |
H A D | sh.memo | 16 (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\*(R [all...] |
H A D | OBSOLETE | 90 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.
|
/titanic_51/usr/src/lib/libshell/common/ |
H A D | DESIGN | 6 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 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. 107 1. args.c contains functions for parsing shell options 110 library and the interface to shell arithmetic. [all …]
|
H A D | sh.memo | 16 (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 D | sh.memo | 16 (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 D | OBSOLETE | 90 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.
|
/titanic_51/usr/src/cmd/script/ |
H A D | script.c | 48 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_51/usr/src/lib/libbsm/common/ |
H A D | audit_rexd.c | 148 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; [all...] |
/titanic_51/usr/src/cmd/oamuser/user/ |
H A D | usermod.c | 55 * | -s shell | -c comment | -l new_logname] 68 * shell - a program to be used as a shell 98 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) [all...] |
H A D | useradd.c | 57 * | -s shell | -c comment | -k skel_dir | -b base_dir] ] 63 * -s shell | -k skel_dir ] 73 * shell - a program to be used as a shell 117 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; [all...] |
/titanic_51/usr/src/grub/grub-0.97/util/ |
H A D | grub-md5-crypt.in | 39 --grub-shell=FILE use FILE as the grub shell 51 --grub-shell=*) 52 grub_shell=`echo "$option" | sed 's/--grub-shell=//'` 90 # Run the grub shell.
|
/titanic_51/usr/src/lib/libshell/common/tests/ |
H A D | README.tests | 17 and a 2nd time as compiled shell script. The env 18 variable SHCOMP defines the version of the shell 22 -c execute test module as compiled shell script 23 -s execute test module as normal shell script
|