Changeset 3317 for trunk/Ohana/src/opihi/lib.shell/parse.c
- Timestamp:
- Feb 24, 2005, 2:31:42 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/parse.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/parse.c
r3103 r3317 76 76 if (status) fprintf (stderr, "warning: exit status of command %d\n", status); 77 77 78 /* convert all but last return to ' '. drop last return */ 78 79 for (B = val; *B != 0; B++) { 79 if (*B == '\n') *B = ' '; 80 if (*B == '\n') { 81 if (B[1]) { 82 *B = ' '; 83 } else { 84 *B = 0; 85 } 86 } 80 87 } 81 88 }
Note:
See TracChangeset
for help on using the changeset viewer.
