Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5200 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc


Ignore:
Timestamp:
Sep 18, 2005, 3:49:21 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: aliases now can also take arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_command.cc

    r5199 r5200  
    378378 * @return true on success, false otherwise.
    379379 */
     380#include  "stdlibincl.h"
    380381bool ShellCommandBase::execute(const char* executionString)
    381382{
     
    395396  if (inputSplits.getCount() == 0)
    396397    return false;
    397   // CHECK FOR ALIAS
    398398  if (inputSplits.getCount() >= 1)
    399399  {
     400    // CHECK FOR ALIAS
    400401    if (ShellCommandClass::aliasList != NULL)
    401402    {
     
    410411          if (objectList != NULL)
    411412          {
    412             elemAL->getCommand()->executeCommand(objectList->firstElement(), "");
     413            elemAL->getCommand()->executeCommand(objectList->firstElement(), executionString+inputSplits.getOffset(1));
     414            delete itAL;
    413415            return true;
    414416          }
     
    418420      delete itAL;
    419421    }
     422
    420423  }
    421424
Note: See TracChangeset for help on using the changeset viewer.