Lines Matching defs:v
54 static int getval(struct limits *lp, tchar **v, rlim_t *);
62 void echo(tchar sep, tchar **v);
153 doonintr(tchar **v)
156 tchar *vv = v[1];
219 doalias(tchar **v)
227 v++;
228 p = *v++;
231 } else if (*v == 0) {
242 set1(strip(p), saveblk(v), &aliases);
247 unalias(tchar **v)
253 unset1(v, &aliases);
268 dologin(tchar **v)
278 if (v[1] != NULL) {
279 v_ = tstostr(NULL, v[1]); /* No need to free */
290 donewgrp(tchar **v)
302 if (v[1] != NULL) {
303 v_ = tstostr(NOSTR, v[1]); /* No need to free */
331 doif(tchar **v, struct command *kp)
339 v++;
340 i = exp(&v);
341 vv = v;
404 dogoto(tchar **v)
425 search(ZGOTO, 0, lp = globone(v[1]));
434 doswitch(tchar **v)
441 v++;
442 if (!*v || *(*v++) != '(') {
445 cp = **v == ')' ? S_ : *v++;
446 if (*(*v++) != ')') {
447 v--;
449 if (*v) {
472 doexit(tchar **v)
484 v++;
485 if (*v) {
486 set(S_status, putn(exp(&v)));
487 if (*v) {
499 doforeach(tchar **v)
507 v++;
508 cp = strip(*v);
512 if (*cp || strlen_(*v) >= MAX_VAR_LEN || !letter(**v)) {
515 cp = *v++;
516 if (v[0][0] != '(' || v[blklen(v) - 1][0] != ')') {
519 v++;
520 gflag = 0, tglob(v);
521 v = glob(v);
522 if (v == 0) {
526 nwp->w_fe = nwp->w_fe0 = v; gargv = 0;
542 dowhile(tchar **v)
551 v++;
558 status = !exp0(&v, 1);
560 status = !exp(&v);
562 if (*v) {
658 dorepeat(tchar **v, struct command *kp)
665 i = getn(v[1]);
669 lshift(v, 2);
974 doecho(tchar **v)
980 echo(' ', v);
984 doglob(tchar **v)
990 echo(0, v);
995 echo(tchar sep, tchar **v)
1006 v++;
1007 if (*v == 0) {
1018 gflag = 0, tglob(v);
1020 v = glob(v);
1021 if (v == 0) {
1026 if (sep == ' ' && *v && strlen_(*v) == 2 &&
1027 ((**v&TRIM) == '-' && (*(*v + 1) & TRIM) == 'n' &&
1028 (*(*v+2)&TRIM) == 0)) {
1029 nonl++, v++;
1031 while (cp = *v++) {
1037 if (*v) {
1087 dosetenv(tchar **v)
1094 v++;
1095 if ((vp = *v++) == 0) {
1107 if ((lp = *v++) == 0) {
1124 dounsetenv(tchar **v)
1129 v++;
1131 local_unsetenv(*v);
1132 if (islocalevar(*v++)) {
1135 } while (*v);
1256 doumask(tchar **v)
1258 tchar *cp = v[1];
1306 dolimit(tchar **v)
1315 v++;
1316 if (*v && eq(*v, S_h)) {
1318 v++;
1320 if (*v == 0) {
1326 lp = findlim(v[0]);
1327 if (v[1] == 0) {
1331 switch (getval(lp, v+1, &limit)) {
1346 getval(struct limits *lp, tchar **v, rlim_t *retval)
1349 tchar *cp = *v++;
1371 if (*v == 0) {
1381 cp = *v;
1509 dounlimit(tchar **v)
1518 v++;
1519 if (*v && eq(*v, S_h)) {
1521 v++;
1523 if (*v == 0) {
1534 while (*v) {
1535 lp = findlim(*v++);
1602 doeval(tchar **v)
1613 v++;
1614 if (*v == 0) {
1617 gflag = 0, tglob(v);
1619 gv = v = glob(v);
1621 if (v == 0) {
1624 v = copyblk(v);
1626 trim(v);
1633 evalvec = v;