IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2006, 7:24:42 AM (20 years ago)
Author:
eugene
Message:

fixed while evaluation

File:
1 edited

Legend:

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

    r7917 r9844  
    1111  found = FALSE;
    1212  ALLOCATE (newline, char, 1024);  /* WARNING: this limits the length of the input line */
     13
     14  V0 = thiscomm (line);
     15  if (V0 && !strncmp ("while", V0, strlen(V0))) {
     16      // special case: don't expand variables in while () statement
     17      strcpy (newline, line);
     18      free (line);
     19      return (newline);
     20  }
    1321
    1422  /* look for form $a$b..$n and expand only the last ones */
Note: See TracChangeset for help on using the changeset viewer.