/dports/shells/ksh93/ast-93u/src/cmd/ksh93/sh/ |
H A D | main.c | 395 if(sh_isstate(SH_INTERACTIVE)) in exfile() 405 if(!sh_isstate(SH_PROFILE)) in exfile() 480 if(sh_isstate(SH_PROFILE)) in exfile() 486 if(sh_isstate(SH_INTERACTIVE) && !tdone) in exfile() 531 if(sh_isstate(SH_INTERACTIVE) && !sferror(iop)) in exfile() 553 if(sh_isstate(SH_INTERACTIVE) && shp->gd->hist_ptr) in exfile() 564 if(!sh_isstate(SH_INTERACTIVE) && !sh_isoption(SH_CFLAG)) in exfile() 567 if(sh_isstate(SH_INTERACTIVE) && shp->gd->hist_ptr) in exfile() 574 if(!sh_isstate(SH_PROFILE) && sh_isoption(SH_CFLAG) && in exfile() 588 if(sh_isoption(SH_TFLAG) && !sh_isstate(SH_PROFILE)) in exfile() [all …]
|
H A D | fault.c | 129 …if((flag&SH_SIGINTERACTIVE) && sh_isstate(SH_INTERACTIVE) && !sh_isstate(SH_FORKED) && ! shp->subs… in sh_fault() 190 if(pp->mode==SH_JMPCMD && sh_isstate(SH_STOPOK)) in sh_fault() 213 if(pp->mode==SH_JMPCMD && sh_isstate(SH_STOPOK)) in sh_fault() 395 if(sh_isstate(SH_ERREXIT) && shp->exitval) in sh_chktrap() 450 int was_history = sh_isstate(SH_HISTORY); in sh_trap() 451 int was_verbose = sh_isstate(SH_VERBOSE); in sh_trap() 467 sh_exec((Shnode_t*)trap,sh_isstate(SH_ERREXIT)); in sh_trap() 527 if(!shp->subshell && sh_isstate(SH_MONITOR) && !sh_isstate(SH_STOPOK)) in sh_exit() 529 if(sh_isstate(SH_TIMING)) in sh_exit()
|
H A D | expand.c | 120 if(sh_isstate(SH_COMPLETE)) in path_expand() 144 if(sh_isstate(SH_FCOMPLETE)) in path_expand() 157 if(!sh_isstate(SH_FCOMPLETE)) in path_expand() 183 else if(!sh_isstate(SH_FCOMPLETE) && sh_isoption(SH_DOTGLOB)) in path_expand()
|
H A D | xec.c | 616 sh_exec(t,sh_isstate(SH_ERREXIT)|sh_isstate(SH_NOFORK)|(mode&~SH_FUNEVAL)); in sh_eval() 1747 if(sh_isstate(SH_PROFILE) || sh_isstate(SH_INTERACTIVE)) in sh_exec() 1778 if((type&FINT) && !sh_isstate(SH_MONITOR)) in sh_exec() 2160 if(sh_isstate(SH_MONITOR)) in sh_exec() 2182 if(!pipejob && sh_isstate(SH_MONITOR)) in sh_exec() 2607 timer_on = sh_isstate(SH_TIMING); in sh_exec() 2917 if(sh_isstate(SH_FORKED)) in sh_exec() 3118 if(sh_isstate(SH_MONITOR)) in _sh_fork() 3182 if(sh_isstate(SH_MONITOR)) in _sh_fork() 3860 if((otype&FINT) && !sh_isstate(SH_MONITOR)) in sh_ntfork() [all …]
|
H A D | jobs.c | 465 if(pw->p_pgrp && pw->p_pgrp==job.curpgid && sh_isstate(SH_STOPOK)) in job_reap() 500 if(pw->p_pgrp && pw->p_pgrp==job.curpgid && pw->p_exit==SIGINT && sh_isstate(SH_STOPOK)) in job_reap() 571 if(sh_isoption(SH_NOTIFY) && sh_isstate(SH_TTYWAIT)) in job_reap() 752 else if(!possible && (!sh_isstate(SH_MONITOR) || sh_isstate(SH_FORKED))) in job_close() 1364 job.curpgid = sh_isstate(SH_MONITOR)?pid:0; in job_post() 1375 if(sh_isstate(SH_MONITOR)) in job_post() 1390 if(hp && !sh_isstate(SH_PROFILE)) in job_post() 1470 if(sh_isstate(SH_INTERACTIVE)) in job_prmsg() 1576 if(sh_isoption(SH_INTERACTIVE) && !sh_isstate(SH_FORKED)) in job_wait()
|
H A D | args.c | 392 …if(!sh_isstate(SH_INIT) && is_option(&newflags,SH_PRIVILEGED) != sh_isoption(SH_PRIVILEGED) || sh_… in sh_applyopts() 806 if(monitor = (sh_isstate(SH_MONITOR)!=0)) in sh_argprocsub() 812 sh_exec((Shnode_t*)argp->argchn.ap,(int)sh_isstate(SH_ERREXIT)); in sh_argprocsub() 817 sh_exec((Shnode_t*)argp->argchn.ap,(int)sh_isstate(SH_ERREXIT)); in sh_argprocsub()
|
/dports/shells/ksh93-devel/ast-cc1bca27/src/cmd/ksh93/sh/ |
H A D | main.c | 395 if(sh_isstate(SH_INTERACTIVE)) in exfile() 405 if(!sh_isstate(SH_PROFILE)) in exfile() 480 if(sh_isstate(SH_PROFILE)) in exfile() 486 if(sh_isstate(SH_INTERACTIVE) && !tdone) in exfile() 531 if(sh_isstate(SH_INTERACTIVE) && !sferror(iop)) in exfile() 553 if(sh_isstate(SH_INTERACTIVE) && shp->gd->hist_ptr) in exfile() 564 if(!sh_isstate(SH_INTERACTIVE) && !sh_isoption(SH_CFLAG)) in exfile() 567 if(sh_isstate(SH_INTERACTIVE) && shp->gd->hist_ptr) in exfile() 574 if(!sh_isstate(SH_PROFILE) && sh_isoption(SH_CFLAG) && in exfile() 588 if(sh_isoption(SH_TFLAG) && !sh_isstate(SH_PROFILE)) in exfile() [all …]
|
H A D | fault.c | 129 …if((flag&SH_SIGINTERACTIVE) && sh_isstate(SH_INTERACTIVE) && !sh_isstate(SH_FORKED) && ! shp->subs… in sh_fault() 190 if(pp->mode==SH_JMPCMD && sh_isstate(SH_STOPOK)) in sh_fault() 213 if(pp->mode==SH_JMPCMD && sh_isstate(SH_STOPOK)) in sh_fault() 395 if(sh_isstate(SH_ERREXIT) && shp->exitval) in sh_chktrap() 450 int was_history = sh_isstate(SH_HISTORY); in sh_trap() 451 int was_verbose = sh_isstate(SH_VERBOSE); in sh_trap() 467 sh_exec((Shnode_t*)trap,sh_isstate(SH_ERREXIT)); in sh_trap() 527 if(!shp->subshell && sh_isstate(SH_MONITOR) && !sh_isstate(SH_STOPOK)) in sh_exit() 529 if(sh_isstate(SH_TIMING)) in sh_exit()
|
H A D | expand.c | 120 if(sh_isstate(SH_COMPLETE)) in path_expand() 144 if(sh_isstate(SH_FCOMPLETE)) in path_expand() 157 if(!sh_isstate(SH_FCOMPLETE)) in path_expand() 183 else if(!sh_isstate(SH_FCOMPLETE) && sh_isoption(SH_DOTGLOB)) in path_expand()
|
H A D | xec.c | 616 sh_exec(t,sh_isstate(SH_ERREXIT)|sh_isstate(SH_NOFORK)|(mode&~SH_FUNEVAL)); in sh_eval() 1747 if(sh_isstate(SH_PROFILE) || sh_isstate(SH_INTERACTIVE)) in sh_exec() 1778 if((type&FINT) && !sh_isstate(SH_MONITOR)) in sh_exec() 2160 if(sh_isstate(SH_MONITOR)) in sh_exec() 2182 if(!pipejob && sh_isstate(SH_MONITOR)) in sh_exec() 2607 timer_on = sh_isstate(SH_TIMING); in sh_exec() 2917 if(sh_isstate(SH_FORKED)) in sh_exec() 3118 if(sh_isstate(SH_MONITOR)) in _sh_fork() 3182 if(sh_isstate(SH_MONITOR)) in _sh_fork() 3860 if((otype&FINT) && !sh_isstate(SH_MONITOR)) in sh_ntfork() [all …]
|
H A D | jobs.c | 465 if(pw->p_pgrp && pw->p_pgrp==job.curpgid && sh_isstate(SH_STOPOK)) in job_reap() 500 if(pw->p_pgrp && pw->p_pgrp==job.curpgid && pw->p_exit==SIGINT && sh_isstate(SH_STOPOK)) in job_reap() 571 if(sh_isoption(SH_NOTIFY) && sh_isstate(SH_TTYWAIT)) in job_reap() 752 else if(!possible && (!sh_isstate(SH_MONITOR) || sh_isstate(SH_FORKED))) in job_close() 1364 job.curpgid = sh_isstate(SH_MONITOR)?pid:0; in job_post() 1375 if(sh_isstate(SH_MONITOR)) in job_post() 1390 if(hp && !sh_isstate(SH_PROFILE)) in job_post() 1470 if(sh_isstate(SH_INTERACTIVE)) in job_prmsg() 1576 if(sh_isoption(SH_INTERACTIVE) && !sh_isstate(SH_FORKED)) in job_wait()
|
H A D | args.c | 392 …if(!sh_isstate(SH_INIT) && is_option(&newflags,SH_PRIVILEGED) != sh_isoption(SH_PRIVILEGED) || sh_… in sh_applyopts() 806 if(monitor = (sh_isstate(SH_MONITOR)!=0)) in sh_argprocsub() 812 sh_exec((Shnode_t*)argp->argchn.ap,(int)sh_isstate(SH_ERREXIT)); in sh_argprocsub() 817 sh_exec((Shnode_t*)argp->argchn.ap,(int)sh_isstate(SH_ERREXIT)); in sh_argprocsub()
|
/dports/shells/ksh2020/ast-ksh2020/src/cmd/ksh93/sh/ |
H A D | main.c | 353 if (sh_isstate(shp, SH_INTERACTIVE)) { in exfile() 360 if (!sh_isstate(shp, SH_PROFILE)) { in exfile() 378 if (sh_isstate(shp, SH_PROFILE) && in exfile() 383 if (!sh_isoption(shp, SH_INTERACTIVE) || sh_isstate(shp, SH_FORKED) || in exfile() 433 if (sh_isstate(shp, SH_PROFILE)) { in exfile() 438 if (sh_isstate(shp, SH_INTERACTIVE) && !tdone) { in exfile() 474 if (sh_isstate(shp, SH_INTERACTIVE) && !sferror(iop)) { in exfile() 496 if (sh_isstate(shp, SH_INTERACTIVE) && shp->gd->hist_ptr) { in exfile() 505 if (!sh_isstate(shp, SH_INTERACTIVE) && !sh_isoption(shp, SH_CFLAG)) { in exfile() 522 if (sh_isoption(shp, SH_TFLAG) && !sh_isstate(shp, SH_PROFILE)) tdone++; in exfile() [all …]
|
H A D | fault.c | 158 if ((flag & SH_SIGINTERACTIVE) && sh_isstate(shp, SH_INTERACTIVE) && in sh_fault() 159 !sh_isstate(shp, SH_FORKED) && !shp->subshell) { in sh_fault() 199 if (pp->mode == SH_JMPCMD && sh_isstate(shp, SH_STOPOK)) { in sh_fault() 212 if (pp->mode == SH_JMPCMD && sh_isstate(shp, SH_STOPOK)) { in sh_fault() 383 if (sh_isstate(shp, SH_ERREXIT) && shp->exitval) { in sh_chktrap() 464 if (!shp->subshell && sh_isstate(shp, SH_MONITOR) && !sh_isstate(shp, SH_STOPOK)) return; in sh_exit() 465 if (sh_isstate(shp, SH_TIMING)) return; in sh_exit() 701 int was_history = sh_isstate(shp, SH_HISTORY); in sh_trap() 702 int was_verbose = sh_isstate(shp, SH_VERBOSE); in sh_trap() 718 sh_exec(shp, (Shnode_t *)trap, sh_isstate(shp, SH_ERREXIT)); in sh_trap()
|
H A D | expand.c | 91 if (sh_isstate(shp, SH_COMPLETE)) { in path_expand() 106 if (sh_isstate(shp, SH_FCOMPLETE)) { in path_expand() 116 if (!sh_isstate(shp, SH_FCOMPLETE)) { in path_expand() 136 } else if (!sh_isstate(shp, SH_FCOMPLETE) && sh_isoption(shp, SH_DOTGLOB)) { in path_expand()
|
H A D | xec.c | 827 if ((type & FINT) && !sh_isstate(shp, SH_MONITOR)) { in forked_child() 942 volatile int was_errexit = sh_isstate(shp, SH_ERREXIT); in sh_exec() 943 volatile int was_monitor = sh_isstate(shp, SH_MONITOR); in sh_exec() 1594 if (sh_isstate(shp, SH_PROFILE) || sh_isstate(shp, SH_INTERACTIVE)) { in sh_exec() 1783 if (sh_isstate(shp, SH_MONITOR)) { in sh_exec() 2095 long timer_on = sh_isstate(shp, SH_TIMING); in sh_exec() 2351 if (sh_isstate(shp, SH_FORKED)) sh_done(shp, 0); in sh_exec() 2481 if (sh_isstate(shp, SH_MONITOR)) { in _sh_fork() 2519 if (sh_isstate(shp, SH_MONITOR)) { in _sh_fork() 3125 if (!sh_isstate(shp, SH_IOPROMPT) && r > SH_EXITSIG && in sh_funscope() [all …]
|
/dports/shells/ast-ksh/ast-ksh93v/src/cmd/ksh93/sh/ |
H A D | main.c | 424 if(sh_isstate(shp,SH_INTERACTIVE)) in exfile() 434 if(!sh_isstate(shp,SH_PROFILE)) in exfile() 509 if(sh_isstate(shp,SH_PROFILE)) in exfile() 515 if(sh_isstate(shp,SH_INTERACTIVE) && !tdone) in exfile() 560 if(sh_isstate(shp,SH_INTERACTIVE) && !sferror(iop)) in exfile() 582 if(sh_isstate(shp,SH_INTERACTIVE) && shp->gd->hist_ptr) in exfile() 593 if(!sh_isstate(shp,SH_INTERACTIVE) && !sh_isoption(shp,SH_CFLAG)) in exfile() 596 if(sh_isstate(shp,SH_INTERACTIVE) && shp->gd->hist_ptr) in exfile() 603 if(!sh_isstate(shp,SH_PROFILE) && sh_isoption(shp,SH_CFLAG) && in exfile() 617 if(sh_isoption(shp,SH_TFLAG) && !sh_isstate(shp,SH_PROFILE)) in exfile() [all …]
|
H A D | fault.c | 160 …if((flag&SH_SIGINTERACTIVE) && sh_isstate(shp,SH_INTERACTIVE) && !sh_isstate(shp,SH_FORKED) && ! s… in sh_fault() 224 if(pp->mode==SH_JMPCMD && sh_isstate(shp,SH_STOPOK)) in sh_fault() 244 if(pp->mode==SH_JMPCMD && sh_isstate(shp,SH_STOPOK)) in sh_fault() 447 if(sh_isstate(shp,SH_ERREXIT) && shp->exitval) in sh_chktrap() 547 if(!shp->subshell && sh_isstate(shp,SH_MONITOR) && !sh_isstate(shp,SH_STOPOK)) in sh_exit_20120720() 549 if(sh_isstate(shp,SH_TIMING)) in sh_exit_20120720() 839 int was_history = sh_isstate(shp,SH_HISTORY); in sh_trap_20120720() 840 int was_verbose = sh_isstate(shp,SH_VERBOSE); in sh_trap_20120720() 856 sh_exec(shp,(Shnode_t*)trap,sh_isstate(shp,SH_ERREXIT)); in sh_trap_20120720()
|
H A D | expand.c | 119 if(sh_isstate(shp,SH_COMPLETE)) in path_expand() 143 if(sh_isstate(shp,SH_FCOMPLETE)) in path_expand() 156 if(!sh_isstate(shp,SH_FCOMPLETE)) in path_expand() 182 else if(!sh_isstate(shp,SH_FCOMPLETE) && sh_isoption(shp,SH_DOTGLOB)) in path_expand()
|
H A D | xec.c | 1655 if(sh_isstate(shp,SH_PROFILE) || shp->dot_depth) in sh_exec() 1800 if(sh_isstate(shp,SH_PROFILE) || sh_isstate(shp,SH_INTERACTIVE)) in sh_exec() 1831 if((type&FINT) && !sh_isstate(shp,SH_MONITOR)) in sh_exec() 2233 if(sh_isstate(shp,SH_MONITOR)) in sh_exec() 2687 timer_on = sh_isstate(shp,SH_TIMING); in sh_exec() 3026 if(sh_isstate(shp,SH_FORKED)) in sh_exec() 3200 if(sh_isstate(shp,SH_MONITOR)) in _sh_fork() 3264 if(sh_isstate(shp,SH_MONITOR)) in _sh_fork() 3792 if((otype&FINT) && !sh_isstate(shp,SH_MONITOR)) in sh_ntfork() 3832 if((otype&FINT) && !sh_isstate(shp,SH_MONITOR)) in sh_ntfork() [all …]
|
/dports/shells/ksh2020/ast-ksh2020/src/cmd/ksh93/bltins/ |
H A D | source.c | 151 sh_exec(shp, (Shnode_t *)(nv_funtree(np)), sh_isstate(shp, SH_ERREXIT)); in b_source() 156 sh_eval(shp, iop, sh_isstate(shp, SH_PROFILE) ? SH_FUNEVAL : 0); in b_source()
|
H A D | fg.c | 69 if (sh_isstate(shp, SH_INTERACTIVE)) { in b_fg()
|
H A D | bg.c | 68 if (sh_isstate(shp, SH_INTERACTIVE)) { in b_bg()
|
H A D | disown.c | 67 if (sh_isstate(shp, SH_INTERACTIVE)) { in b_disown()
|
H A D | return.c | 78 if (shp->fn_depth == 0 && shp->dot_depth == 0 && !sh_isstate(shp, SH_PROFILE)) { in b_return()
|