fixed argv open().
previously wrongly dup2() to STDIN.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */
|
||||
/* Updated: 2021/12/20 18:06:36 by lperrey ### ########.fr */
|
||||
/* Updated: 2021/12/20 21:51:07 by lperrey ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -18,13 +18,13 @@ extern char **environ;
|
||||
|
||||
// Init
|
||||
int init(t_all *c, char *argv[]);
|
||||
char *init_prompt(char *prompt_base);
|
||||
char *update_prompt(char *prompt_base);
|
||||
char **retrieve_path(void);
|
||||
void set_signals_behaviour(void);
|
||||
|
||||
// Shell modes
|
||||
void shell_loop(t_all *c);
|
||||
void shell_script(t_all *c);
|
||||
void shell_script(t_all *c, int script_fd);
|
||||
|
||||
// Lexer
|
||||
t_token *lexing(char *input);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/10/08 02:35:52 by lperrey #+# #+# */
|
||||
/* Updated: 2021/12/20 17:24:45 by lperrey ### ########.fr */
|
||||
/* Updated: 2021/12/20 22:13:45 by lperrey ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -42,6 +42,7 @@ typedef struct s_all
|
||||
char *prompt_base;
|
||||
char *prompt;
|
||||
t_token *token_list;
|
||||
int script_fd;
|
||||
} t_all;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user