|
|
@ -227,6 +227,10 @@ int execute(char *cmdline, char **args) |
|
|
|
free(redirect_args); |
|
|
|
exit(0); |
|
|
|
} |
|
|
|
if ((redirect_flag == 1) || (redirect_flag == 2)) |
|
|
|
{ |
|
|
|
close(fd); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
@ -251,7 +255,6 @@ int execute(char *cmdline, char **args) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
close(fd); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|