Lines Matching refs:wp

18 c_cd(wp)  in c_cd()  argument
19 char **wp; in c_cd()
34 while ((optc = ksh_getopt(wp, &builtin_opt, "LP")) != EOF)
45 wp += builtin_opt.optind;
55 if (!wp[0]) {
61 } else if (!wp[1]) {
63 dir = wp[0];
72 } else if (!wp[2]) {
86 if ((cp = strstr(current_wd, wp[0])) == (char *) 0) {
91 olen = strlen(wp[0]);
92 nlen = strlen(wp[1]);
96 memcpy(dir + ilen, wp[1], nlen);
173 c_pwd(wp) in c_pwd() argument
174 char **wp; in c_pwd()
180 while ((optc = ksh_getopt(wp, &builtin_opt, "LP")) != EOF)
191 wp += builtin_opt.optind;
193 if (wp[0]) {
220 c_print(wp) in c_print() argument
221 char **wp; in c_print()
235 if (wp[0][0] == 'e') { /* echo command */
247 wp += 1;
248 while ((s = *wp) && *s == '-' && s[1]) {
263 wp++;
269 while ((optc = ksh_getopt(wp, &builtin_opt, options)) != EOF)
309 if (wp[builtin_opt.optind]
310 && strcmp(wp[builtin_opt.optind], "-") == 0)
314 wp += builtin_opt.optind;
319 while (*wp != NULL) {
321 s = *wp;
362 if (*++wp != NULL)
427 c_whence(wp) in c_whence() argument
428 char **wp; in c_whence()
435 int iam_whence = wp[0][0] == 'w';
439 while ((optc = ksh_getopt(wp, &builtin_opt, options)) != EOF)
453 wp += builtin_opt.optind;
470 while ((vflag || ret == 0) && (id = *wp++) != NULL) {
550 c_command(wp) in c_command() argument
551 char **wp; in c_command()
556 return c_whence(wp);
561 c_typeset(wp) in c_typeset() argument
562 char **wp; in c_typeset()
575 switch (**wp) {
602 while ((optc = ksh_getopt(wp, &builtin_opt, options)) != EOF) {
673 if (!(builtin_opt.info & GI_MINUSMINUS) && wp[builtin_opt.optind]
674 && (wp[builtin_opt.optind][0] == '-'
675 || wp[builtin_opt.optind][0] == '+')
676 && wp[builtin_opt.optind][1] == '\0')
678 thing = wp[builtin_opt.optind][0];
686 if (wp[builtin_opt.optind]) {
710 if (wp[builtin_opt.optind]) {
717 for (i = builtin_opt.optind; wp[i]; i++) {
719 f = findfunc(wp[i], hash(wp[i]),
735 wp[i], f->val.t);
736 } else if (!typeset(wp[i], fset, fclr, field, base)) {
737 bi_errorf("%s: not identifier", wp[i]);
858 c_alias(wp) in c_alias() argument
859 char **wp; in c_alias()
868 while ((optc = ksh_getopt(wp, &builtin_opt, "dprtUx")) != EOF) {
895 wp += builtin_opt.optind;
897 if (!(builtin_opt.info & GI_MINUSMINUS) && *wp
898 && (wp[0][0] == '-' || wp[0][0] == '+') && wp[0][1] == '\0')
900 prefix = wp[0][0];
901 wp++;
912 if (!tflag || *wp) {
922 if (*wp == NULL) {
938 for (; *wp != NULL; wp++) {
939 char *alias = *wp;
995 c_unalias(wp) in c_unalias() argument
996 char **wp; in c_unalias()
1003 while ((optc = ksh_getopt(wp, &builtin_opt, "adt")) != EOF)
1017 wp += builtin_opt.optind;
1019 for (; *wp != NULL; wp++) {
1020 ap = mytsearch(t, *wp, hash(*wp));
1049 c_let(wp) in c_let() argument
1050 char **wp; in c_let()
1055 if (wp[1] == (char *) 0) /* at&t ksh does this */
1058 for (wp++; *wp; wp++)
1059 if (!evaluate(*wp, &val, KSH_RETURN_ERROR)) {
1069 c_jobs(wp) in c_jobs() argument
1070 char **wp; in c_jobs()
1078 while ((optc = ksh_getopt(wp, &builtin_opt, "lpnzZ")) != EOF)
1098 wp += builtin_opt.optind;
1100 if (*wp && **wp) {
1101 setproctitle("%s", *wp);
1107 if (!*wp) {
1111 for (; *wp; wp++)
1112 if (j_jobs(*wp, flag, nflag))
1120 c_fgbg(wp) in c_fgbg() argument
1121 char **wp; in c_fgbg()
1123 int bg = strcmp(*wp, "bg") == 0;
1130 if (ksh_getopt(wp, &builtin_opt, null) == '?')
1132 wp += builtin_opt.optind;
1133 if (*wp)
1134 for (; *wp; wp++)
1135 rv = j_resume(*wp, bg);
1177 c_kill(wp) in c_kill() argument
1178 char **wp; in c_kill()
1186 if ((p = wp[1]) && *p == '-'
1192 i = (wp[2] && strcmp(wp[2], "--") == 0) ? 3 : 2;
1196 while ((optc = ksh_getopt(wp, &builtin_opt, "ls:")) != EOF)
1213 if ((lflag && t) || (!wp[i] && !lflag)) {
1223 if (wp[i]) {
1224 for (; wp[i]; i++) {
1225 if (!bi_getn(wp[i], &n))
1267 for (; (p = wp[i]); i++) {
1300 c_getopts(wp) in c_getopts() argument
1301 char **wp; in c_getopts()
1311 if (ksh_getopt(wp, &builtin_opt, null) == '?')
1313 wp += builtin_opt.optind;
1315 options = *wp++;
1321 var = *wp++;
1336 if (*wp == (char *) 0)
1337 wp = e->loc->next->argv;
1339 *--wp = e->loc->next->argv[0];
1342 for (argc = 0; wp[argc]; argc++)
1346 && user_opt.p > strlen(wp[user_opt.optind - 1])))
1353 optc = ksh_getopt(wp, &user_opt, options);
1400 c_bind(wp) in c_bind() argument
1401 char **wp; in c_bind()
1407 while ((optc = ksh_getopt(wp, &builtin_opt, "lm")) != EOF)
1418 wp += builtin_opt.optind;
1420 if (*wp == NULL) /* list all */
1423 for (; *wp != NULL; wp++) {
1424 cp = strchr(*wp, '=');
1427 if (x_bind(*wp, cp, macro, 0))