Updates from 0.2.1 into 0.2.1-inu-1.5
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
/* Conditionally execute a command based if the file argv[1] doesn't exist */
|
||||
/* Except for execvp, we stick to ANSI C. */
|
||||
# include "gcconfig.h"
|
||||
# include "private/gcconfig.h"
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
# include <unistd.h>
|
||||
|
||||
int main(argc, argv, envp)
|
||||
int argc;
|
||||
@@ -16,6 +18,7 @@ char ** envp;
|
||||
return(0);
|
||||
}
|
||||
printf("^^^^Starting command^^^^\n");
|
||||
fflush(stdout);
|
||||
execvp(argv[2], argv+2);
|
||||
exit(1);
|
||||
|
||||
|
Reference in New Issue
Block a user