Home
last modified time | relevance | path

Searched refs:comsub (Results 1 – 7 of 7) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dsubshell.c103 char comsub; member
215 shp->comsub = 0; in sh_subfork()
474 Sfio_t *sh_subshell(Shell_t *shp,Shnode_t *t, volatile int flags, int comsub) in sh_subshell() argument
531 if(comsub) in sh_subshell()
536 sp->comsub = shp->comsub; in sh_subshell()
537 shp->subshare = comsub==2 || (comsub==1 && sh_isoption(SH_SUBSHARE)); in sh_subshell()
538 if(comsub) in sh_subshell()
539 shp->comsub = comsub; in sh_subshell()
540 if(!comsub || !shp->subshare) in sh_subshell()
596 if(comsub) in sh_subshell()
[all …]
H A Dlex.c136 static int comsub(Lex_t*,int);
289 lp->comsub = 0; in sh_lexopen()
879 wordflags |= comsub(lp,c); in sh_lex()
1238 if(mode==ST_BEGIN && (lp->lex.reservok||lp->comsub)) in sh_lex()
1240 if(lp->comsub) in sh_lex()
1259 if(lp->comsub && c==RBRACE) in sh_lex()
1362 else if(n==RBRACE && lp->comsub) in sh_lex()
1593 static int comsub(register Lex_t *lp, int endtok) in comsub() function
1601 csub = lp->comsub; in comsub()
1606 lp->comsub = (endtok==LBRACE); in comsub()
[all …]
H A Dxec.c582 char comsub = shp->comsub; in sh_eval() local
585 shp->comsub = 0; in sh_eval()
625 shp->comsub = comsub; in sh_eval()
1610 if(shp->comsub==1 && !(shp->fdstatus[1]&IONOSEEK)) in sh_exec()
1689 if(shp->comsub==1 && usepipe && unpipe) in sh_exec()
1706 if(shp->comsub==1 && usepipe && unpipe) in sh_exec()
1939 if(shp->comsub==1) in sh_exec()
1968 if(shp->comsub==1 && usepipe) in sh_exec()
2076 if(shp->comsub==1 && !(shp->fdstatus[1]&IONOSEEK)) in sh_exec()
2617 if(shp->subshell && shp->comsub==1) in sh_exec()
[all …]
H A Dparse.c425 lp->comsub = 1; in sh_dolparen()
439 lp->comsub = 0; in sh_dolparen()
1131 int showme=0, comsub; in item() local
1317 comsub = lexp->comsub; in item()
1318 lexp->comsub = 0; in item()
1320 lexp->comsub = comsub; in item()
1736 if(token==RPAREN && (iof&IOLSEEK) && lexp->comsub) in inout()
H A Dio.c1289 if(shp->comsub==1) in sh_redirect()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dshlex.h50 char comsub; /* parsing command substitution */ member
H A Ddefs.h205 char comsub; /* set when in $() comsub */ \