Home
last modified time | relevance | path

Searched refs:subshell (Results 1 – 25 of 40) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dsubshell.c66 static struct subshell struct
69 struct subshell *prev; /* previous subshell data */ argument
70 struct subshell *pipe; /* subshell where output goes to pipe on fork */ argument
123 register struct subshell *sp = subshell_data->pipe; in sh_subtmpfile() argument
183 register struct subshell *sp = subshell_data; in sh_subfork()
214 shp->subshell = 0; in sh_subfork()
225 register struct subshell *sp; in nv_subsaved()
227 for(sp = (struct subshell*)subshell_data; sp; sp=sp->prev) in nv_subsaved()
247 register struct subshell *sp; in sh_assignok()
254 sp = (struct subshell*)subshell_data; in sh_assignok()
[all …]
H A Dfault.c104 if(shp->subshell && trap && sig!=SIGINT && sig!=SIGQUIT && sig!=SIGWINCH && sig!=SIGCONT) in sh_fault()
121 if(shp->subshell) in sh_fault()
129 …flag&SH_SIGINTERACTIVE) && sh_isstate(SH_INTERACTIVE) && !sh_isstate(SH_FORKED) && ! shp->subshell) in sh_fault()
141 pp->mode = shp->subshell?SH_JMPSUB:SH_JMPFUN; in sh_fault()
145 if(shp->subshell) in sh_fault()
376 if(!sh.subshell) in sh_sigclear()
527 if(!shp->subshell && sh_isstate(SH_MONITOR) && !sh_isstate(SH_STOPOK)) in sh_exit()
537 if(!shp->subshell && (sig=sh_fork(shp,0,NIL(int*)))) in sh_exit()
552 if(shp->subshell) in sh_exit()
H A Dargs.c795 int subshell = shp->subshell; in sh_argprocsub() local
800 if(fd==0 && shp->subshell) in sh_argprocsub()
817 shp->subshell = 0; in sh_argprocsub()
828 shp->subshell = subshell; in sh_argprocsub()
H A Dio.c328 int subshell; /* saved for subshell */ member
1168 int isstring = shp->subshell?(sfset(sfstdout,0,0)&SF_STRING):0; in sh_redirect()
1178 if(fn==1 && shp->subshell && !shp->subshare && (flag==2 || isstring)) in sh_redirect()
1213 else if(shp->subshell) in sh_redirect()
1285 if(shp->subshell && dupfd==1) in sh_redirect()
1542 if(flag!=2 || shp->subshell) in sh_redirect()
1726 filemap[shp->topfd].subshell = (flag&IOSUBSHELL); in sh_iosave()
1787 if(!flag && filemap[fd].subshell) in sh_iorestore()
1844 if(filemap[fd].subshell) in sh_iorestore()
H A Dnvtype.c1319 int nelem=0,subshell=shp->subshell; in nv_settype() local
1345 if(subshell) in nv_settype()
1348 shp->subshell = 0; in nv_settype()
1391 shp->subshell = subshell; in nv_settype()
H A Dxec.c1350 type = (execflg && !shp->subshell && !shp->st.trapcom[0]); in sh_exec()
1388 if(shp->subshell && nv_isattr(np,BLT_NOSFIO)) in sh_exec()
1390 if(execflg && !shp->subshell && in sh_exec()
1473 if((shp->topfd>topfd) && !(shp->subshell && np==SYSEXEC)) in sh_exec()
1607 if(shp->subshell) in sh_exec()
1615 no_fork = !ntflag && !(type&(FAMP|FPOU)) && !shp->subshell && in sh_exec()
1914 if(shp->subshell) in sh_exec()
1993 …if(!shp->subshell && !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && (flags&sh_state(SH_NOFORK… in sh_exec()
2073 if(shp->subshell) in sh_exec()
2617 if(shp->subshell && shp->comsub==1) in sh_exec()
[all …]
H A Dnvdisc.c339 if(sh.subshell) in assign()
693 fp->subshell = sh.subshell; in nv_disc()
1012 if(!sh.subshell) in clone_putv()
H A Dname.c1408 if(shp->subshell && c=='=') in nv_open()
1629 if(shp->subshell && !nv_local && !(flags&NV_RDONLY)) in nv_putval()
2454 int subshell = shp->subshell; in table_unset() local
2455 shp->subshell = 0; in table_unset()
2465 shp->subshell = subshell; in table_unset()
2560 if(shp->subshell) in _nv_unset()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dvariables.sh463 [[ $(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 …
467 … [[ $(fun .sh.subshell) == 2 ]] || err_exit ".sh.subshell not working for functions in subshells"
468 (( .sh.subshell == 1 )) || err_exit ".sh.subshell not working in a subshell"
601 [[ ${.sh.subshell} == 0 ]] || err_exit '${.sh.subshell} should be 0'
603 [[ ${.sh.subshell} == 1 ]] || err_exit '${.sh.subshell} should be 1'
605 [[ ${.sh.subshell} == 2 ]] || err_exit '${.sh.subshell} should be 2'
/illumos-gate/usr/src/cmd/ast/libshell/common/tests/
H A Dsun_solaris_cr_6907460_EXIT_trap_handlers_are_sometimes_executed_twice.sh139 for vari.subshell in \
166 ${vari.subshell}
/illumos-gate/usr/src/cmd/sh/
H A Ddefs.c80 jmp_buf subshell; variable
H A Ddefs.h383 extern jmp_buf subshell;
H A Dmain.c220 if (setjmp(subshell)) { in main()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dcd_pwd.c85 opwdnod = (shp->subshell?sh_assignok(OLDPWDNOD,1):OLDPWDNOD); in b_cd()
86 pwdnod = (shp->subshell?sh_assignok(PWDNOD,1):PWDNOD); in b_cd()
H A Dulimit.c135 if(shp->subshell && !shp->subshare) in b_ulimit()
H A Dtypeset.c610 if(shp->subshell && !shp->subshare) in setall()
787 if(shp->subshell) in setall()
1025 if(tdata.sh->subshell && !tdata.sh->subshare) in b_builtin()
1167 if(shp->subshell) in unall()
1250 if(shp->subshell) in unall()
H A Dmisc.c119 if(shp->subshell && !shp->subshare) in B_login()
581 if(shp->subshell && !shp->subshare) in b_vpath()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/
H A DRELEASE11 12-07-17 A bug in which the restricted option set in a subshell prevented
12 some variables from getting restored when the subshell completed
14 12-07-09 A bug in which the directory is not restored after a subshell changes
32 12-06-22 A bug in which an exit trap set in a subshell might not be triggered
63 invoked from a subshell has been fixed.
96 12-05-15 A bug in which a subshell of the form (name=value exec ...) could
209 subshell is not invoked in the subshell has been fixed.
222 12-02-29 A bug in which ~user expanded first in a subshell prevented it
242 12-02-10 Another bug in the saving and restoring of IFS in a subshell
363 11-06-01 A bug in which the .paths directory wasn't read when a subshell was
[all …]
H A DRELEASE9364 was executed in a subshell was fixed.
241 g. Functions defined inside a subshell no longer remain
242 defined when the subshell completes.
262 it in a subshell.
338 a subshell could effect the parent shell has been
/illumos-gate/usr/src/cmd/more/
H A Dmore.help17 !<cmd> or :!<cmd> Execute <cmd> in a subshell
/illumos-gate/usr/src/cmd/zlogin/
H A Dzlogin.c1110 char *subshell; in prep_args() local
1118 if ((subshell = calloc(1, subshell_len)) == NULL) in prep_args()
1122 (void) strcat(subshell, argv[i]); in prep_args()
1123 (void) strcat(subshell, " "); in prep_args()
1145 new_argv[a++] = subshell; in prep_args()
/illumos-gate/usr/src/cmd/ast/libshell/
H A DMakefile.defs91 sh/subshell.o \
H A DMakefile.tests74 tests/subshell.sh \
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dshell.h147 short subshell; /* set for virtual subshell */ member
H A Dnval.h74 unsigned char subshell; member

12