|
@@ -512,7 +512,6 @@ int parse_command(Command* c){
|
|
|
strncpy(cmd, c->cmd, length);
|
|
|
//Split la commande
|
|
|
split_command(c, cmd);
|
|
|
- c->name = c->argv[0];
|
|
|
//Analyse wildcard
|
|
|
for(int i = 0; i < c->argc; i++){
|
|
|
//Regarde si il faut remplacer l'argument par une suite de fichier
|
|
@@ -533,6 +532,8 @@ int parse_command(Command* c){
|
|
|
c->argc = res - 1; //On ne compte pas le NULL final
|
|
|
}
|
|
|
}
|
|
|
+ //Ajout nom commande
|
|
|
+ c->name = c->argv[0];
|
|
|
//Ici tous est ok
|
|
|
return SHELL_OK;
|
|
|
}
|