Home | History | Annotate | Download | only in src

Lines Matching defs:ap

59 	const char ** volatile ap = NULL;
140 ap = (const char **)up;
141 if (Flag(FXTRACE) && ap[0]) {
144 for (i = 0; ap[i]; i++)
145 shf_fprintf(shl_out, "%s%c", ap[i],
146 ap[i + 1] ? ' ' : '\n');
149 if (ap[0])
150 tp = findcom(ap[0], FC_BI|FC_FUNC);
182 rv = comexec(t, tp, (const char **)ap, flags, xerrok);
338 ap = (t->vars == NULL) ? e->loc->argv + 1 :
355 while (*ap != NULL) {
356 setstr(global(t->str), *ap++, KSH_UNWIND_ERROR);
362 if (!(ccp = do_selectargs(ap, is_first))) {
408 for (ap = (const char **)t->vars; *ap; ap++) {
409 if (i || ((s = evalstr(*ap, DOTILDE|DOPAT)) &&
498 comexec(struct op *t, struct tbl * volatile tp, const char **ap,
519 if (Flag(FTALKING) && *(lastp = ap)) {
545 if ((cp = *++ap) == NULL ||
546 (!strcmp(cp, "--") && (cp = *++ap) == NULL)) {
554 if (ap[1] == NULL)
556 ap++;
566 while ((optc = ksh_getopt(ap, &builtin_opt, ":p")) == 'p')
582 ap += builtin_opt.optind;
588 if (!ap[0]) {
603 if (ap[1] && ap[1][0] == '-' && ap[1][1] != '\0' &&
605 (ap[1][1] != '-' || ap[1][2] != '\0'))
619 tp = findcom(ap[0], fcflags & (FC_BI|FC_FUNC));
626 if (keepasn_ok && (!ap[0] || (tp && (tp->flag & KEEPASN))))
663 if ((cp = *ap) == NULL) {
679 rv = call_builtin(tp, (const char **)ap, null);
726 kshname = ap[0];
728 ap[0] = kshname;
729 e->loc->argv = ap;
730 for (i = 0; *ap++ != NULL; i++)
826 texec.args = ap;
839 scriptexec(struct op *tp, const char **ap)
930 cap.ro = ap;
1528 do_selectargs(const char **ap, bool print_menu)
1536 for (argct = 0; ap[argct]; argct++)
1546 pr_menu(ap);
1553 return ((i >= 1 && i <= argct) ? ap[i - 1] : null);
1580 pr_menu(const char * const *ap)
1597 for (n = 0, pp = ap; *pp; n++, pp++) {
1613 smi.args = ap;
1627 pr_list(char * const *ap)
1633 for (n = 0, pp = ap; *pp; n++, pp++) {
1642 print_columns(shl_out, n, plain_fmt_entry, (const void *)ap,