IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 6, 2005, 10:29:08 AM (21 years ago)
Author:
eugene
Message:

fixed multicommand to parse subcommands sequentially, added modulus operator

File:
1 edited

Legend:

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

    r2843 r4462  
    55  void *Signal;
    66  int n, Nlines, j, status, ThisList;
    7   char *outline;
     7  char *line;
    88 
    99  /* increase the shell level (Nlists) by one */
     
    2929  for (n = 0; (n < Nlines) && !interrupt; n++) {
    3030    lists[ThisList].n = n;
    31     status = command (lists[ThisList].line[n], &outline);
     31    line = lists[ThisList].line[n];
     32    status = multicommand (line);
     33    if (line != NULL) free (line);
    3234    n = lists[ThisList].n;
    3335    Nlines = lists[ThisList].Nlines;
    34     if (outline != NULL) free (outline);
    3536    if (auto_break && !status) loop_break = TRUE;
    3637    if (loop_break || loop_continue) break;
Note: See TracChangeset for help on using the changeset viewer.