/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"); 237 if(shell == 0 || !endsh(shell) || ( 238 !in_dir("/bin",shell) && 239 !in_dir("/usr/bin",shell) && 240 !in_dir("/usr/lbin",shell) && 241 !in_dir("/usr/local/bin",shell))) 253 endsh(register const char *shell) argument 271 in_dir(register const char *dir,register const char *shell) argument [all...] |
H A D | pmain.c | 22 #include <shell.h>
|
H A D | shcomp.c | 25 * shell script to shell binary converter 32 "[+NAME?shcomp - compile a shell script]" 33 "[+DESCRIPTION?Unless \b-D\b is specified, \bshcomp\b takes a shell script, " 43 "standard output. If \ainfile\a is also omitted, the shell script " 61 #include <shell.h>
|
/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
|
/ast/src/cmd/tksh/ |
H A D | Makefile | 5 :PACKAGE: - X11 tk tcl shell$(libtype) ast$(libtype)
|
/ast/src/lib/libast/string/ |
H A D | fmtesc.c | 59 int shell; local 69 shell = 0; 75 shell = 1; 177 if (singlequote || shell) 183 if (shell) 202 else if (!spaced && !escaped && (isspace(c) || ((flags & FMT_SHELL) || shell) && (strchr("\";~&|()<>[]*?", c) || c == '#' && (b == f || isspace(*(b - 1)))))) 210 buf += shell + !spaced;
|
/ast/src/cmd/coshell/ |
H A D | job.c | 87 sp = state.con[fd].info.shell; 100 * if only!=0 then only that shell is checked 111 if (jp->pid && ((sp = jp->shell) == only || !only)) 137 cswrite(jp->shell->fd, s, n); 201 if (jp->pid > 0 && jp->shell->fd > 0) 204 cswrite(jp->shell->fd, buf, n); 205 message((-2, "killpg -%s %s.%d", fmtsignal(-sig), jp->shell->name, jp->pid)); 229 if (jp->shell == &state.wait) state.joblimit--; 230 else if (jp->shell->running) 232 jp->shell [all...] |
H A D | service.h | 41 Coshell_t* shell; /* controlling shell */ \ 52 char remote[MISCLEN];/* remote shell path */ \ 53 char shell[MISCLEN]; /* shell path */ \ 67 int pid; /* shell pid */ \ 101 #define FORGET (5*LOST) /* forget lost shell */ 106 #define LOST (1*60) /* job/shell lost secs */ 139 #define GET (1<<1) /* get existing shell */ 142 #define NEW (1<<4) /* make new shell i 192 char shell[MISCLEN]; member in struct:__anon58 211 char* shell; member in struct:__anon58::__anon59 231 Coshell_t* shell; member in struct:__anon60 261 Coshell_t* shell; member in union:__anon63::__anon64 328 Coshell_t* shell; member in struct:__anon66 [all...] |
H A D | cotest.c | 60 * initialze the shell table 68 state.shell = state.shellnext = state.home; 107 sp = state.shell; 119 } while ((sp = sp->next) != state.shell);
|
H A D | Makefile | 9 service.h main.c job.c schedule.c shell.c command.c \
|
H A D | schedule.c | 72 * search for name in the shell table 102 sp = state.shell; 164 pathrepl(a->global.shell, 0, state.home->type, "%s"); 165 state.sh = dupstring(state.sh, a->global.shell); 214 * shell scheduling 254 if (ap != state.shell && (ap->override || !IDLE(ap->stat.idle, ap->idle) && (!ap->bypass || !(bypass = miscmatch(ap, ap->bypass))))) 325 } while ((sp = sp->next) != state.shell); 332 if (sp = state.shell) do 335 } while ((sp = sp->next) != state.shell); 354 if (state.shell) [all...] |
H A D | shell.c | 25 * remote coshell server shell support 49 * open a new shell connection to sp 84 sfprintf(xp, sp->shell[0] ? sp->shell : state.sh, sp->type); 87 if (sp == state.shell) 106 error(ERROR_OUTPUT|2, fd, "%s: cannot exec shell", sh); 111 message((-1, "%s: open shell pid=%d", sp->name, proc->pid)); 142 * close shell sp if open 151 if (sp->fd != -1) message((-1, "%s: close shell", sp->name)); 175 if (jp->shell [all...] |
H A D | command.c | 309 a host ... change host shell attributes\n\ 310 c host ... close host shell\n\ 318 o host ... open host shell\n\ 321 s [aelopst] shell status [attr|every|long|open|pid|sched|temp]\n\ 322 t shell and user connection totals\n\ 458 if (jp = con[n].info.pass.job) sfprintf(state.string, "%3d pass %-3d %s %d%s\n", n, con[n].info.pass.fd, jp->shell->name, jp->pid, con[n].info.pass.serialize ? " serialize" : ""); 468 sfprintf(state.string, "%3d shell %s\n", n, con[n].info.shell->name); 511 sfprintf(state.string, " shell %s\n", state.sh); 595 sfprintf(state.string, "%3d%4d%4d%6s%7s%c%-16s %s%s%s", jp - state.job, jp->fd, jp->rid, t, fmtelapsed(cs.time - jp->start, 1), jp->ref <= 0 ? '*' : jp->lost ? (jp->lost > cs.time ? '?' : '!') : ' ', jp->shell [all...] |
H A D | main.c | 37 "[+NAME?coshell - network shell coprocess server]" 38 "[+DESCRIPTION?\bcoshell\b is a local network shell coprocess server for " 42 "server controls a background \bksh\b(1) shell process, initiated by " 44 "environment of the local host shell is inherited from the server " 60 "which may be generated from two shell scripts \bgenlocal\b and " 91 static char* coshell[] = /* shell to run on other side */ 131 * initialze the shell table 141 state.shell = state.shellnext = state.home; 178 * get the shell path 189 error(3, "shell no [all...] |
/ast/src/cmd/3d/ |
H A D | 3d.sh | 80 [s:shell?Sets the \bsh\b(1) executable path to \afile\a.]:[file:=ksh] 213 shell=$SHELL 350 SHELL=${SHELL:-$shell} 359 shell="$SHELL $options" 364 ""|"''"|'""') shell="$SHELL $options" ;; 365 *) shell= ;; 370 "") exec $shell "$@" ;; 372 "") $show __="'$__'" exec $shell "$@" ;; 373 *) $show __="'$__'" $exp exec $shell "$@" ;;
|
H A D | execve3d.c | 77 if (streq(sp, state.binsh)) sp = state.shell; 79 if (streq(sp, "/bin/sh")) sp = state.shell;
|
/ast/src/cmd/ksh93/ |
H A D | Makefile | 5 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 */ 47 SHOPT_REMOTE == /* enable --rc if running as a remote shell */ 51 SHOPT_SUID_EXEC == 1 /* allow (safe) suid/sgid shell scripts */ 53 SHOPT_TIMEOUT == /* number of seconds for shell timeout */ 162 shell$(RELEASE) $(VERSION) id=shell :LIBRARY: shell.3 nval.3 alarm.c cd_pwd.c cflow.c deparse.c \ 182 $(INCLUDEDIR) :INSTALLPROTO: nval.h shell [all...] |
/ast/src/cmd/ksh93/data/ |
H A D | variables.c | 25 #include <shell.h> 33 * This is the list of built-in shell variables and default values
|
/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...] |
/ast/src/cmd/3d/features/ |
H A D | syscall.sh | 30 shell= 31 ( typeset -u u=a && test "A" = "$u" ) >/dev/null 2>&1 && shell=u$shell 32 ( integer n=1+1 && test "2" = "$n" ) >/dev/null 2>&1 && shell=n$shell 33 ( x=a.b.c && test "a" = "${x%%.*}" ) >/dev/null 2>&1 && shell=e$shell 55 case $shell in 285 -D*) case $shell in 377 case $shell i [all...] |
/ast/src/cmd/ksh93/bltins/ |
H A D | umask.c | 35 #include <shell.h>
|
/ast/src/cmd/mailx/ |
H A D | local.c | 386 * return the current shell path 392 char* shell; local 394 if (!(shell = state.var.shell) || !*shell) 395 shell = _PATH_SHELL; 396 return shell;
|
/ast/src/lib/libast/comp/ |
H A D | conf.sh | 46 shell=`eval 'x=123&&integer n=\${#x}\${x#1?}&&((n==330/(10)))&&echo ksh' 2>/dev/null` 234 *.h) case $shell in 889 case $shell in 1360 case $shell in 1395 case $shell in 1420 '0|'*) case $shell in 1427 case $shell in 1451 case $shell in 1483 case $shell in 1579 do case $shell i [all...] |
/ast/src/lib/libtksh/include/ |
H A D | tksh.h | 5 #include <ast/shell.h> /* X11 has Shell.h that clashes on case ignorant systems */ 203 void* shbltin; /* shell (Shbltin_t*) */
|