Changeset 3483 in kBuild
- Timestamp:
- Sep 21, 2020 12:06:15 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/jobs.c
r3480 r3483 84 84 STATIC void cmdtxt(shinstance *, union node *); 85 85 STATIC void cmdlist(shinstance *, union node *, int); 86 STATIC void cmdredirlist(shinstance *, union node *, int); 86 87 STATIC void cmdputs(shinstance *, const char *); 87 88 STATIC shpid forkparent(shinstance *psh, struct job *jp, union node *n, int mode, shpid pid); … … 1354 1355 case NCMD: 1355 1356 cmdlist(psh, n->ncmd.args, 1); 1356 cmd list(psh, n->ncmd.redirect, 0);1357 cmdredirlist(psh, n->ncmd.redirect, 0); 1357 1358 break; 1358 1359 case NARG: … … 1406 1407 cmdtxt(psh, np); 1407 1408 if (sep && np->narg.next) 1409 cmdputs(psh, " "); 1410 } 1411 } 1412 1413 STATIC void 1414 cmdredirlist(shinstance *psh, union node *np, int sep) 1415 { 1416 for (; np; np = np->nfile.next) { 1417 if (!sep) 1418 cmdputs(psh, " "); 1419 cmdtxt(psh, np); 1420 if (sep && np->nfile.next) 1408 1421 cmdputs(psh, " "); 1409 1422 }
Note:
See TracChangeset
for help on using the changeset viewer.