IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2006, 9:27:46 AM (20 years ago)
Author:
eugene
Message:

various minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/expand_vars.c

    r3922 r6424  
    7171      *N = *Val; /* place the value of the variable in the newline */
    7272    }
     73    N--; /* we overshoot on last loop */
    7374
    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 */
    7682
    7783    if (V0 != NULL) free (V0);
Note: See TracChangeset for help on using the changeset viewer.