redirect #17

Merged
cromer merged 22 commits from redirect into master 2021-07-27 23:36:31 -04:00
Showing only changes of commit b2327ff334 - Show all commits

View File

@ -67,8 +67,8 @@ void loop() {
StringArray *args = create_string_array(); StringArray *args = create_string_array();
int get_file_name = 0; int get_file_name = 0;
Redirect out = {1, -1, -1, NULL, false}; Redirect out = {.fd = 1, .fd_new = -1, .fd_copy = -1, .filename = NULL, .append = false};
Redirect err = {2, -1, -1, NULL, false}; Redirect err = {.fd = 2, .fd_new = -1, .fd_copy = -1, .filename = NULL, .append = false};
char *saveptr = NULL; char *saveptr = NULL;
char *token = strtok_r(line, " ", &saveptr); char *token = strtok_r(line, " ", &saveptr);