Home
last modified time | relevance | path

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

12

/titanic_41/usr/src/lib/libshell/common/sh/
H A Dsubshell.c58 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()
[all …]
H A Dfault.c101 if(shp->subshell && sig!=SIGINT && sig!=SIGQUIT && sig!=SIGWINCH && sig!=SIGCONT) in sh_fault()
121 …flag&SH_SIGINTERACTIVE) && sh_isstate(SH_INTERACTIVE) && !sh_isstate(SH_FORKED) && ! shp->subshell) in sh_fault()
138 if(!shp->subshell) in sh_fault()
365 if(!sh.subshell) in sh_sigclear()
514 if(!shp->subshell && sh_isstate(SH_MONITOR) && !sh_isstate(SH_STOPOK)) in sh_exit()
523 if(!shp->subshell && (sig=sh_fork(0,NIL(int*)))) in sh_exit()
537 if(shp->subshell) in sh_exit()
H A Dargs.c802 int subshell = shp->subshell; in sh_argprocsub() local
814 shp->subshell = 0; in sh_argprocsub()
825 shp->subshell = subshell; in sh_argprocsub()
H A Dxec.c956 type = (execflg && !shp->subshell && !shp->st.trapcom[0]); in sh_exec()
996 if(shp->subshell && nv_isattr(np,BLT_NOSFIO)) in sh_exec()
998 if(execflg && !shp->subshell && in sh_exec()
1075 if((shp->topfd>topfd) && !(shp->subshell && np==SYSEXEC)) in sh_exec()
1168 if(shp->subshell) in sh_exec()
1179 !shp->subshell && shp->fn_depth==0 && in sh_exec()
1260 if(execflg && shp->subshell && !shp->subshare) in sh_exec()
1387 if(shp->subshell) in sh_exec()
1455 …if(!shp->subshell && !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && (flags&sh_state(SH_NOFORK… in sh_exec()
1494 if(shp->subshell) in sh_exec()
[all …]
H A Dio.c315 int subshell; /* saved for subshell */ member
972 int isstring = shp->subshell?(sfset(sfstdout,0,0)&SF_STRING):0; in sh_redirect()
981 if(fn==1 && shp->subshell && !shp->subshare && (flag==2 || isstring)) in sh_redirect()
1073 if(shp->subshell && dupfd==1 && (sfset(sfstdout,0,0)&SF_STRING)) in sh_redirect()
1474 filemap[shp->topfd].subshell = flag; in sh_iosave()
1529 if(!flag && filemap[fd].subshell) in sh_iorestore()
1574 if(filemap[fd].subshell) in sh_iorestore()
/titanic_41/usr/src/lib/libshell/common/scripts/
H A Dfilemutexdemo1.sh62 integer subshell=-1
80 (( _.subshell=.sh.subshell ))
97 (( _.subshell=.sh.subshell ))
103 (( _.subshell == .sh.subshell )) && return 0
/titanic_41/usr/src/lib/libshell/common/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"
592 [[ ${.sh.subshell} == 0 ]] || err_exit '${.sh.subshell} should be 0'
594 [[ ${.sh.subshell} == 1 ]] || err_exit '${.sh.subshell} should be 1'
596 [[ ${.sh.subshell} == 2 ]] || err_exit '${.sh.subshell} should be 2'
H A Dsun_solaris_cr_6907460_EXIT_trap_handlers_are_sometimes_executed_twice.sh139 for vari.subshell in \
166 ${vari.subshell}
/titanic_41/usr/src/cmd/sh/
H A Ddefs.c81 jmp_buf subshell; variable
H A Ddefs.h383 extern jmp_buf subshell;
/titanic_41/usr/src/lib/libshell/common/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 Dtypeset.c488 if(shp->subshell && !shp->subshare) in b_common()
621 if(shp->subshell) in b_common()
826 if(tdata.sh->subshell && !tdata.sh->subshare) in b_builtin()
953 if(shp->subshell) in b_unall()
1023 if(shp->subshell) in b_unall()
H A Dulimit.c135 if(shp->subshell && !shp->subshare) in b_ulimit()
H A Dmisc.c119 if(shp->subshell && !shp->subshare) in B_login()
575 if(shp->subshell && !shp->subshare) in b_vpath()
/titanic_41/usr/src/cmd/more/
H A Dmore.help17 !<cmd> or :!<cmd> Execute <cmd> in a subshell
/titanic_41/usr/src/lib/libshell/common/
H A DRELEASE14 10-01-19 A workaround for a double-free of a trap in both a subshell and its
35 09-12-07 A bug where a parent shell environment var reset in a subshell removed
38 a subshell could trigger twice has been fixed.
54 09-11-11 Job control now works for subshell commands, (...).
59 09-11-09 A bug in which a variable that has been unset in a subshell and then
60 exported from that subshell does not show up in the environment
71 09-10-12 A bug in which a function loaded in a subshell could leave side
90 09-09-09 A bug in which a subshell containing a background process could
206 is a subshell grouping command has been fixed.
215 09-02-02 A bug in which a function autoloaded in a subshell could cause
[all …]
/titanic_41/usr/src/cmd/zlogin/
H A Dzlogin.c1109 char *subshell; in prep_args() local
1117 if ((subshell = calloc(1, subshell_len)) == NULL) in prep_args()
1121 (void) strcat(subshell, argv[i]); in prep_args()
1122 (void) strcat(subshell, " "); in prep_args()
1144 new_argv[a++] = subshell; in prep_args()
/titanic_41/usr/src/lib/libshell/common/include/
H A Dshell.h141 short subshell; /* set for virtual subshell */ member
H A Dnval.h74 unsigned char subshell; member
/titanic_41/usr/src/lib/libshell/
H A DMakefile.com90 sh/subshell.o \
H A DMakefile.demo117 tests/subshell.sh \
/titanic_41/usr/src/lib/libshell/amd64/include/ast/
H A Dshell.h150 short subshell; /* set for virtual subshell */ member
/titanic_41/usr/src/lib/libshell/i386/include/ast/
H A Dshell.h150 short subshell; /* set for virtual subshell */ member
/titanic_41/usr/src/lib/libshell/sparc/include/ast/
H A Dshell.h150 short subshell; /* set for virtual subshell */ member
/titanic_41/usr/src/lib/libshell/sparcv9/include/ast/
H A Dshell.h150 short subshell; /* set for virtual subshell */ member

12