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/opihi.c

    r3907 r4462  
    3636    stripwhite (line);
    3737    if (*line) {
    38       list = multicommand (line, &Nlist);
    39       for (i = 0; i < Nlist; i++) {
    40         status = command (list[i], &outline);
    41         if (outline != NULL) free (outline);
    42       }
     38      status = multicommand (line);
    4339      add_history (line);
    4440      append_history (1, history);
    45       free (list);
    4641    }
    4742    free (line);
     
    4944  }
    5045}
    51 
    52   /* this needs some work to use multicommand correctly
    53      multicommand is currently a do-nothing function. 
    54      if we want multicommand to interact with the list/macro style commands,
    55      we need a command to push all the elements of the line onto the command stack.
    56    */
Note: See TracChangeset for help on using the changeset viewer.