Home
last modified time | relevance | path

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

1234

/titanic_51/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()
/titanic_51/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
71 Dt_t *var; /* variable table at time of subshell */ argument
73 Dt_t *sfun; /* function scope for subshell */ argument
74 Dt_t *salias;/* alias scope for subshell */ argument
123 register struct subshell *sp = subshell_data->pipe; in sh_subtmpfile() argument
177 * This routine creates a temp file if necessary and creates a subshell
75 pathlistsubshell global() argument
77 errcontextsubshell global() argument
79 errcontextsubshell global() argument
81 optionssubshell global() argument
82 subpidsubshell global() argument
83 saveoutsubshell global() argument
84 pwdsubshell global() argument
108 cpipesubshell global() argument
482 int16_t subshell; sh_subshell() local
[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 if((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()
/titanic_51/usr/src/cmd/ast/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...]
/titanic_51/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_51/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_51/usr/src/contrib/ast/src/cmd/ksh93/tests/
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...]
/titanic_51/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}
/titanic_51/usr/src/cmd/sh/
H A Ddefs.c81 jmp_buf subshell; variable
/titanic_51/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()
/titanic_51/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()
/titanic_51/usr/src/cmd/more/
H A Dmore.help17 !<cmd> or :!<cmd> Execute <cmd> in a subshell
/titanic_51/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_51/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
[all...]
/titanic_51/usr/src/cmd/ast/libshell/
H A DMakefile.defs91 sh/subshell.o \
/titanic_51/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_51/usr/src/lib/libshell/common/include/
H A Dshell.h141 short subshell; /* set for virtual subshell */ member
/titanic_51/usr/src/contrib/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
/titanic_51/usr/src/lib/libshell/
H A DMakefile.com90 sh/subshell.o \

1234