Home | History | Annotate | Download | only in src

Lines Matching defs:ap

58 	const char ** volatile ap = NULL;
144 ap = (const char **)up;
145 if (ap[0])
146 tp = findcom(ap[0], FC_BI|FC_FUNC);
178 rv = comexec(t, tp, (const char **)ap, flags, xerrok);
337 ap = (t->vars == NULL) ? e->loc->argv + 1 :
354 while (*ap != NULL) {
355 setstr(global(t->str), *ap++, KSH_UNWIND_ERROR);
361 if (!(ccp = do_selectargs(ap, is_first))) {
407 for (ap = (const char **)t->vars; *ap; ap++) {
408 if (i || ((s = evalstr(*ap, DOTILDE|DOPAT)) &&
496 comexec(struct op *t, struct tbl * volatile tp, const char **ap,
514 if (Flag(FTALKING) && *(lastp = ap)) {
546 if ((cp = *++ap) == NULL ||
547 (!strcmp(cp, "--") && (cp = *++ap) == NULL)) {
561 if (ap[1] == NULL)
564 while ((optc = ksh_getopt(ap, &builtin_opt, "a:c")) != -1)
578 ap += builtin_opt.optind;
588 while ((optc = ksh_getopt(ap, &builtin_opt, ":p")) == 'p')
604 ap += builtin_opt.optind;
610 if (!ap[0]) {
617 if (ap[1] && ap[1][0] == '-' && ap[1][1] != '\0' &&
619 (ap[1][1] != '-' || ap[1][2] != '\0')) {
643 tp = findcom(ap[0], fcflags & (FC_BI|FC_FUNC));
648 if (!resetspec && (!ap[0] || (tp && (tp->flag & KEEPASN))))
690 if (ap[rv = 0]) {
692 print_value_quoted(shl_xtrace, ap[rv]);
693 if (ap[++rv]) {
701 if ((cp = *ap) == NULL) {
718 rv = call_builtin(tp, (const char **)ap, null, resetspec);
782 kshname = ap[0];
784 ap[0] = kshname;
785 e->loc->argv = ap;
786 for (i = 0; *ap++ != NULL; i++)
880 texec.args = ap;
909 scriptexec(struct op *tp, const char **ap)
1014 cap.ro = ap;
1636 do_selectargs(const char **ap, bool print_menu)
1644 for (argct = 0; ap[argct]; argct++)
1654 pr_menu(ap);
1661 ap[i - 1] : null);
1686 pr_menu(const char * const *ap)
1703 for (n = 0, pp = ap; *pp; n++, pp++) {
1719 smi.args = ap;
1732 pr_list(char * const *ap)
1738 for (n = 0, pp = ap; *pp; n++, pp++) {
1747 print_columns(shl_out, n, plain_fmt_entry, (const void *)ap,