Verified Commit 25167f5f authored by GOUVILLE Tom's avatar GOUVILLE Tom :fingers_crossed:
Browse files

Merge branch 'master' into last-fixes

parents 31c7bcc3 38545dcd
Pipeline #23997 passed with stages
in 2 minutes and 28 seconds
......@@ -9,10 +9,10 @@ int command_runner(tokens* theToken,bool erreur){
bool isSkipped = false;
bool isSuccessful = true;
for(int i=0; i<theToken->size;i++){
if(i==0 && strcmp(theToken->elements[i],"cd")==0){
if(theCommand->size==0 && strcmp(theToken->elements[i],"cd")==0){
make_cd(theToken->elements[i+1]);
i++;
} else if(i==0 && strcmp(theToken->elements[i],"fg")==0){
} else if(theCommand->size==0 && strcmp(theToken->elements[i],"fg")==0){
if(theToken->size>=i+2 && isnumber(theToken->elements[i+1])){
put_in_foreground(atoi(theToken->elements[i+1]));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment