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

/ast/src/cmd/tksh/
H A Duinit.c28 static void tksh_userinit(Shell_t* shp, int subshell) argument
40 if (subshell < 0)
46 else if (subshell > 0)
/ast/src/cmd/ksh93/sh/
H A Dsubshell.c66 static struct subshell struct
69 struct subshell *prev; /* previous subshell data */
70 struct subshell *pipe; /* subshell where output goes to pipe on fork */
71 Dt_t *var; /* variable table at time of subshell */
73 Dt_t *sfun; /* function scope for subshell */
74 Dt_t *salias;/* alias scope for subshell */
123 register struct subshell *sp = subshell_data->pipe;
175 * This routine creates a temp file if necessary and creates a subshell
476 int16_t subshell; local
[all...]
H A Dfault.c104 if(shp->subshell && trap && sig!=SIGINT && sig!=SIGQUIT && sig!=SIGWINCH && sig!=SIGCONT)
121 if(shp->subshell)
129 if((flag&SH_SIGINTERACTIVE) && sh_isstate(SH_INTERACTIVE) && !sh_isstate(SH_FORKED) && ! shp->subshell)
141 pp->mode = shp->subshell?SH_JMPSUB:SH_JMPFUN;
145 if(shp->subshell)
376 if(!sh.subshell)
527 if(!shp->subshell && sh_isstate(SH_MONITOR) && !sh_isstate(SH_STOPOK))
537 if(!shp->subshell && (sig=sh_fork(shp,0,NIL(int*))))
552 if(shp->subshell)
H A Dargs.c786 int subshell = shp->subshell; local
791 if(fd==0 && shp->subshell)
808 shp->subshell = 0;
819 shp->subshell = subshell;
H A Dio.c328 int subshell; /* saved for subshell */ member in struct:fdsave
1146 int isstring = shp->subshell?(sfset(sfstdout,0,0)&SF_STRING):0;
1156 if(fn==1 && shp->subshell && !shp->subshare && (flag==2 || isstring))
1191 else if(shp->subshell)
1262 if(shp->subshell && dupfd==1)
1515 if(flag!=2 || shp->subshell)
1699 filemap[shp->topfd].subshell = (flag&IOSUBSHELL);
1754 if(!flag && filemap[fd].subshell)
1804 /* keep file descriptors for subshell restor
[all...]
H A Dxec.c1341 type = (execflg && !shp->subshell && !shp->st.trapcom[0]);
1379 if(shp->subshell && nv_isattr(np,BLT_NOSFIO))
1381 if(execflg && !shp->subshell &&
1463 /* don't restore for subshell exec */
1464 if((shp->topfd>topfd) && !(shp->subshell && np==SYSEXEC))
1597 if(shp->subshell)
1605 no_fork = !ntflag && !(type&(FAMP|FPOU)) && !shp->subshell &&
1902 if(shp->subshell)
1981 if(!shp->subshell && !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && (flags&sh_state(SH_NOFORK)))
2061 if(shp->subshell)
[all...]
H A Dnvtype.c1321 int nelem=0,subshell=shp->subshell; local
1347 if(subshell)
1350 shp->subshell = 0;
1393 shp->subshell = subshell;
H A Dnvdisc.c339 if(sh.subshell)
693 fp->subshell = sh.subshell;
1012 if(!sh.subshell)
H A Dname.c1393 if(shp->subshell && c=='=')
1614 if(shp->subshell && !nv_local && !(flags&NV_RDONLY))
2436 int subshell = shp->subshell; local
2437 shp->subshell = 0;
2447 shp->subshell = subshell;
2542 if(shp->subshell)
H A Darray.c1204 if(sh.subshell)
1254 if(sh.subshell)
1765 if(sh.subshell && (mp=nv_search(sp,ap->header.table,0)) && nv_isnull(mp))
1773 if(sh.subshell)
H A Dinit.c770 register int i,n,x, savesub=shp->subshell;
772 shp->subshell = 0;
827 shp->subshell = savesub;
H A Djobs.c487 else if(shp->subshell)
H A Dpath.c1194 if(shp->subshell)
/ast/src/cmd/ksh93/tests/
H A Dcoprocess.sh148 err_exit "subshell $cat coprocess lingers in parent"
187 ) && err_exit "$cat coprocess with subshell would hang"
291 [[ $got == $exp ]] || err_exit "main coprocess subshell query failed -- expected $exp, got '$got'"
307 [[ $got == $exp ]] || err_exit "subshell coprocess main query failed -- expected $exp, got '$got'"
321 [[ $got == $exp ]] || err_exit "subshell coprocess subshell query failed -- expected $exp, got '$got'"
355 [[ $got == $exp ]] || err_exit "main 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...]
/ast/src/cmd/ksh93/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 Dmisc.c119 if(shp->subshell && !shp->subshare)
581 if(shp->subshell && !shp->subshare)
H A Dtypeset.c609 if(shp->subshell && !shp->subshare)
786 if(shp->subshell)
1024 if(tdata.sh->subshell && !tdata.sh->subshare)
1166 if(shp->subshell)
1248 if(shp->subshell)
/ast/src/cmd/ksh93/data/
H A Dbash_pre_rc.sh255 nameref BASH_SUBSHELL=.sh.subshell
/ast/src/cmd/ksh93/include/
H A Dshell.h89 #define SH_SUBSHARE 27 /* subshell shares state with parent */
147 short subshell; /* set for virtual subshell */ member in struct:Shell_s
H A Dnval.h74 unsigned char subshell; member in struct:Namfun
/ast/src/cmd/kshlib/dbm_t/
H A Ddbm_t.c310 if(ap->shp->subshell)
311 sfprintf(sfstderr,"subshell=%d subscript=%s will be modified, need to save \n",ap->shp->subshell,sp);

Completed in 74 milliseconds