Added parsing to Pish()
This commit is contained in:
parent
cd7861dbce
commit
c21e2fb7f6
@ -32,6 +32,15 @@ void Pish(void)
|
||||
while (1)
|
||||
{
|
||||
command = getInput();
|
||||
//Parse command
|
||||
char* token = strtok(command, " ");
|
||||
while(token != NULL)
|
||||
{
|
||||
//This only holds 1 command at a time then it overrides
|
||||
//Will need modified
|
||||
token = strtok(NULL, " ");
|
||||
}
|
||||
|
||||
IntegratedCheck(command);
|
||||
retval = fork();
|
||||
// Child
|
||||
|
Loading…
Reference in New Issue
Block a user