Searched refs:subshell (Results 1 - 25 of 35) sorted by relevance

12

/illumos-gate/usr/src/lib/libshell/common/scripts/
H A Dfilemutexdemo1.sh59 # 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 Dsubshell.c58 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 Dfault.c101 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 Dargs.c802 int subshell = shp->subshell; local
814 shp->subshell = 0;
825 shp->subshell = subshell;
H A Dio.c315 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 Dsun_solaris_cr_6907460_EXIT_trap_handlers_are_sometimes_executed_twice.sh139 for vari.subshell in \
166 ${vari.subshell}
H A Dcoprocess.sh140 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 Dvariables.sh145 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 Ddefs.c81 jmp_buf subshell; variable
H A Ddefs.h383 extern jmp_buf subshell;
H A Dmain.c220 if (setjmp(subshell)) {
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dcd_pwd.c85 opwdnod = (shp->subshell?sh_assignok(OLDPWDNOD,1):OLDPWDNOD);
86 pwdnod = (shp->subshell?sh_assignok(PWDNOD,1):PWDNOD);
H A Dulimit.c135 if(shp->subshell && !shp->subshare)
H A Dtypeset.c488 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 Dmisc.c119 if(shp->subshell && !shp->subshare)
575 if(shp->subshell && !shp->subshare)
/illumos-gate/usr/src/lib/libshell/common/data/
H A Dbash_pre_rc.sh255 nameref BASH_SUBSHELL=.sh.subshell
/illumos-gate/usr/src/lib/libshell/common/include/
H A Dshell.h84 #define SH_SUBSHARE 27 /* subshell shares state with parent */
141 short subshell; /* set for virtual subshell */ member in struct:Shell_s
H A Dnval.h74 unsigned char subshell; member in struct:Namfun
/illumos-gate/usr/src/lib/libshell/
H A DMakefile.com90 sh/subshell.o \
/illumos-gate/usr/src/lib/libshell/amd64/include/ast/
H A Dshell.h93 #define SH_SUBSHARE 27 /* subshell shares state with parent */
150 short subshell; /* set for virtual subshell */ member in struct:Shell_s
H A Dnval.h83 unsigned char subshell; member in struct:Namfun
/illumos-gate/usr/src/lib/libshell/i386/include/ast/
H A Dshell.h93 #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 Dshell.h93 #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 Dshell.h93 #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 Dzlogin.c1109 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;

Completed in 159 milliseconds

12