/illumos-gate/usr/src/lib/libshell/common/scripts/ |
H A D | filemutexdemo1.sh | 59 # keep track of subshell level. The problem is that we do not know a 60 # way to figure out whether someone calls "unlock" in a subshell and then 61 # leaves the subshell and calls "unlock" again 62 integer subshell=-1 80 (( _.subshell=.sh.subshell )) 97 (( _.subshell=.sh.subshell )) 103 (( _.subshell == .sh.subshell )) [all...] |
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | subshell.c | 58 static struct subshell struct 61 struct subshell *prev; /* previous subshell data */ 62 struct subshell *pipe; /* subshell where output goes to pipe on fork */ 63 Dt_t *var; /* variable table at time of subshell */ 65 Dt_t *sfun; /* function scope for subshell */ 66 Dt_t *salias;/* alias scope for subshell */ 106 register struct subshell *sp = subshell_data->pipe; 183 * This routine creates a temp file if necessary and creates a subshell 477 int16_t subshell; local [all...] |
H A D | fault.c | 101 if(shp->subshell && sig!=SIGINT && sig!=SIGQUIT && sig!=SIGWINCH && sig!=SIGCONT) 121 if((flag&SH_SIGINTERACTIVE) && sh_isstate(SH_INTERACTIVE) && !sh_isstate(SH_FORKED) && ! shp->subshell) 138 if(!shp->subshell) 365 if(!sh.subshell) 514 if(!shp->subshell && sh_isstate(SH_MONITOR) && !sh_isstate(SH_STOPOK)) 523 if(!shp->subshell && (sig=sh_fork(0,NIL(int*)))) 537 if(shp->subshell)
|
H A D | args.c | 802 int subshell = shp->subshell; local 814 shp->subshell = 0; 825 shp->subshell = subshell;
|
H A D | io.c | 315 int subshell; /* saved for subshell */ member in struct:fdsave 972 int isstring = shp->subshell?(sfset(sfstdout,0,0)&SF_STRING):0; 981 if(fn==1 && shp->subshell && !shp->subshare && (flag==2 || isstring)) 1073 if(shp->subshell && dupfd==1 && (sfset(sfstdout,0,0)&SF_STRING)) 1474 filemap[shp->topfd].subshell = flag; 1529 if(!flag && filemap[fd].subshell) 1571 /* keep file descriptors for subshell restore */ 1574 if(filemap[fd].subshell)
|
/illumos-gate/usr/src/lib/libshell/common/tests/ |
H A D | sun_solaris_cr_6907460_EXIT_trap_handlers_are_sometimes_executed_twice.sh | 139 for vari.subshell in \ 166 ${vari.subshell}
|
H A D | coprocess.sh | 140 err_exit "subshell coprocess lingers in parent" 178 ) && err_exit 'coprocess with subshell would hang' 278 [[ $got == $exp ]] || err_exit "main coprocess subshell query failed -- expected $exp, got '$got'" 294 [[ $got == $exp ]] || err_exit "subshell coprocess main query failed -- expected $exp, got '$got'" 308 [[ $got == $exp ]] || err_exit "subshell coprocess subshell query failed -- expected $exp, got '$got'"
|
H A D | variables.sh | 145 then err_exit 'unset foo in subshell produces side effect ' 233 then err_exit 'setting TMOUT in subshell affects parent' 275 then err_exit 'IFS not restored after subshell' 463 [[ $(posixfun .sh.subshell) == 1 ]] || err_exit ".sh.subshell not working for posix functions" 464 [[ $(fun .sh.subshell) == 1 ]] || err_exit ".sh.subshell not working for functions" 466 [[ $(posixfun .sh.subshell) == 2 ]] || err_exit ".sh.subshell not working for posix functions in subshells" 467 [[ $(fun .sh.subshell) [all...] |
/illumos-gate/usr/src/cmd/sh/ |
H A D | defs.c | 81 jmp_buf subshell; variable
|
H A D | defs.h | 383 extern jmp_buf subshell;
|
H A D | main.c | 220 if (setjmp(subshell)) {
|
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | cd_pwd.c | 85 opwdnod = (shp->subshell?sh_assignok(OLDPWDNOD,1):OLDPWDNOD); 86 pwdnod = (shp->subshell?sh_assignok(PWDNOD,1):PWDNOD);
|
H A D | ulimit.c | 135 if(shp->subshell && !shp->subshare)
|
H A D | typeset.c | 488 if(shp->subshell && !shp->subshare) 621 if(shp->subshell) 826 if(tdata.sh->subshell && !tdata.sh->subshare) 953 if(shp->subshell) 1023 if(shp->subshell)
|
H A D | misc.c | 119 if(shp->subshell && !shp->subshare) 575 if(shp->subshell && !shp->subshare)
|
/illumos-gate/usr/src/lib/libshell/common/data/ |
H A D | bash_pre_rc.sh | 255 nameref BASH_SUBSHELL=.sh.subshell
|
/illumos-gate/usr/src/lib/libshell/common/include/ |
H A D | shell.h | 84 #define SH_SUBSHARE 27 /* subshell shares state with parent */ 141 short subshell; /* set for virtual subshell */ member in struct:Shell_s
|
H A D | nval.h | 74 unsigned char subshell; member in struct:Namfun
|
/illumos-gate/usr/src/lib/libshell/ |
H A D | Makefile.com | 90 sh/subshell.o \
|
/illumos-gate/usr/src/lib/libshell/amd64/include/ast/ |
H A D | shell.h | 93 #define SH_SUBSHARE 27 /* subshell shares state with parent */ 150 short subshell; /* set for virtual subshell */ member in struct:Shell_s
|
H A D | nval.h | 83 unsigned char subshell; member in struct:Namfun
|
/illumos-gate/usr/src/lib/libshell/i386/include/ast/ |
H A D | shell.h | 93 #define SH_SUBSHARE 27 /* subshell shares state with parent */ 150 short subshell; /* set for virtual subshell */ member in struct:Shell_s
|
/illumos-gate/usr/src/lib/libshell/sparc/include/ast/ |
H A D | shell.h | 93 #define SH_SUBSHARE 27 /* subshell shares state with parent */ 150 short subshell; /* set for virtual subshell */ member in struct:Shell_s
|
/illumos-gate/usr/src/lib/libshell/sparcv9/include/ast/ |
H A D | shell.h | 93 #define SH_SUBSHARE 27 /* subshell shares state with parent */ 150 short subshell; /* set for virtual subshell */ member in struct:Shell_s
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 1109 char *subshell; local 1117 if ((subshell = calloc(1, subshell_len)) == NULL) 1121 (void) strcat(subshell, argv[i]); 1122 (void) strcat(subshell, " "); 1144 new_argv[a++] = subshell;
|