Lines Matching refs:subshell
58 static struct subshell struct
61 struct subshell *prev; /* previous subshell data */ argument
62 struct subshell *pipe; /* subshell where output goes to pipe on fork */ argument
106 register struct subshell *sp = subshell_data->pipe; in sh_subtmpfile() argument
189 register struct subshell *sp = subshell_data; in sh_subfork()
219 shp->subshell = 0; in sh_subfork()
228 register struct subshell *sp; in nv_subsaved()
230 for(sp = (struct subshell*)subshell_data; sp; sp=sp->prev) in nv_subsaved()
250 register struct subshell *sp = (struct subshell*)subshell_data; in sh_assignok()
267 if(mp || !np->nvfun || np->nvfun->subshell>=sh.subshell) in sh_assignok()
311 save = shp->subshell; in sh_assignok()
312 shp->subshell = 0; in sh_assignok()
315 shp->subshell = save; in sh_assignok()
322 static void nv_restore(struct subshell *sp) in nv_restore()
385 register struct subshell *sp = subshell_data; in sh_subaliastree()
403 register struct subshell *sp = subshell_data; in sh_subfuntree()
436 register struct subshell *sp = subshell_data; in sh_subsavefd()
448 register struct subshell *sp = subshell_data; in sh_subjobcheck()
472 struct subshell sub_data; in sh_subshell()
473 register struct subshell *sp = &sub_data; in sh_subshell()
477 int16_t subshell; in sh_subshell() local
495 subshell = shp->subshell+1; in sh_subshell()
496 SH_SUBSHELLNOD->nvalue.s = subshell; in sh_subshell()
497 shp->subshell = subshell; in sh_subshell()
575 if(comsub!=2 && jmpval!=SH_JMPSUB && shp->st.trapcom[0] && shp->subshell) in sh_subshell()
585 if(shp->subshell==0) /* must be child process */ in sh_subshell()
721 if(shp->subshell) in sh_subshell()
722 SH_SUBSHELLNOD->nvalue.s = --shp->subshell; in sh_subshell()
723 subshell = shp->subshell; in sh_subshell()