Skip to content

Commit

Permalink
note cd src is being ran twice
Browse files Browse the repository at this point in the history
  • Loading branch information
vctrubio committed Feb 25, 2023
1 parent b3c4134 commit 10ffff6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion srcs/piping.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int run_if_first_level_builtins_set_path(t_cmd **curr, char **path,
i[3] = 0;
if (*path)
free(*path);
if (check_if_builtin_not_pipe((*curr)))
if (check_if_builtin_not_pipe((*curr))) //PROBLEM HERE PROP
_shell()->exit_code = run_builtin((*curr));
*path = ft_get_exec_path((*curr)->args);
if (*path && access(*path, X_OK) != 0)
Expand Down Expand Up @@ -109,3 +109,7 @@ void pipe_commands(t_cmd *cmd)
}
pipe_commands_cleanup(i[2], pipes, path);
}


//cd srcs
//-> cd is being ran twice man, cd srcs (success) cd srcs (failure becasue chdir has occured.)

0 comments on commit 10ffff6

Please sign in to comment.