Changeset 6424 for trunk/Ohana/src/opihi/lib.shell/expand_vars.c
- Timestamp:
- Feb 13, 2006, 9:27:46 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/expand_vars.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/expand_vars.c
r3922 r6424 71 71 *N = *Val; /* place the value of the variable in the newline */ 72 72 } 73 N--; /* we overshoot on last loop */ 73 74 74 for (N--,L++; ISVAR(*L); L++); 75 L--; 75 /* skip past the variable in the source line */ 76 /* L currently points at $ */ 77 L++; 78 if (*L == '?') L++; /* skip past ? in $?name */ 79 80 while (ISVAR(*L)) L++; 81 L--; /* we overshoot */ 76 82 77 83 if (V0 != NULL) free (V0);
Note:
See TracChangeset
for help on using the changeset viewer.
