Added parsing to Pish()
This commit is contained in:
parent
cd7861dbce
commit
c21e2fb7f6
11
src/Pish.c
11
src/Pish.c
@ -32,7 +32,16 @@ void Pish(void)
|
|||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
command = getInput();
|
command = getInput();
|
||||||
IntegratedCheck(command);
|
//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();
|
retval = fork();
|
||||||
// Child
|
// Child
|
||||||
if (retval == 0)
|
if (retval == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user