lperrey
69adb1cf2f
retrieve_path() leak fixed
2021-12-22 19:34:21 +01:00
lperrey
523f560eab
here_doc script_fd fix
...
+ line_len in here_doc
+ error message SIGQUIT
2021-12-22 15:57:02 +01:00
lperrey
8ed97346f7
fixed argv open().
...
previously wrongly dup2() to STDIN.
2021-12-20 22:52:41 +01:00
lperrey
e138e6550b
close cmd fd after each exec
2021-12-20 18:10:53 +01:00
lperrey
11d2f36307
norme headers
...
+ add -Werror flag in Makefile
2021-12-20 17:56:35 +01:00
Hugo LAMY
0a64977cdc
merging conflicts
2021-12-20 15:07:58 +01:00
Hugo LAMY
59a43ea1cc
momentanee solution pour extern variable
2021-12-20 15:06:31 +01:00
LuckyLaszlo
afbb1cd2e0
shell_script()
...
+ reset "rl_event_hook" to NULL after here_doc()
+ split init.c in multiple files
+ submodule minishell_tests
2021-12-18 05:42:08 +01:00
LuckyLaszlo
59f0b7603b
deleted terminal.c
2021-12-16 06:39:29 +01:00
LuckyLaszlo
06f1987ae4
small adjust in files
2021-12-16 05:05:25 +01:00
LuckyLaszlo
5c1d8f527c
bugfix, pipeline must continue if expand_redirection() fail
...
+ ft_perror_io() delete
2021-12-11 21:22:43 +01:00
LuckyLaszlo
d3d55386d9
refactoring parsing (wip)
2021-12-11 04:27:57 +01:00
LuckyLaszlo
9322ec9ec9
close_stdio() at exit
2021-12-10 06:34:44 +01:00
LuckyLaszlo
cee6a8962b
shlvl_init(), set SHLVL
...
+ export builtin small change
2021-12-08 06:36:52 +01:00
LuckyLaszlo
bcc82aabaf
signals adjustements
2021-12-08 04:45:12 +01:00
LuckyLaszlo
b7b3cec6e0
builtin unset + fixed builtin export
2021-12-05 18:15:23 +01:00
LuckyLaszlo
66183ab441
cd refactoring, error_wrappers
2021-12-05 16:28:41 +01:00
LuckyLaszlo
c3a9035622
builtins cd, pwd (todo, refactoring cd)
2021-12-05 01:01:27 +01:00
LuckyLaszlo
27c00a78a0
export builtin
2021-12-04 18:14:24 +01:00
LuckyLaszlo
d710f5ef68
fixed readline() leak/double_free with **environ
2021-12-02 01:35:02 +01:00
LuckyLaszlo
b3f74c4179
refactoring exec
2021-12-01 17:24:32 +01:00
LuckyLaszlo
025ef76c01
refactoring lexing
2021-12-01 16:00:36 +01:00
LuckyLaszlo
ffd06c4b95
ft_free_null()
...
+ refactoring shell_loop()
2021-11-30 14:12:05 +01:00
LuckyLaszlo
b265e8475a
free_exit() renamed exit_free()
2021-11-29 12:44:46 +01:00
LuckyLaszlo
cb5c2dcb30
"cmd_arr/cmd_array" renamed to "pipeline"
2021-11-29 12:32:03 +01:00
LuckyLaszlo
3baf91afb3
replaced occurrences of last exit_status
...
+ deleted envp comments
+ WIP Macro exit status
+ TODO : Invalid free of environ in readline
2021-11-27 12:59:16 +01:00
LuckyLaszlo
843b6d84c5
"extern char **environ" in header file
...
+ global var g_all deleted, renamed switch_heredoc_sigint
2021-11-26 21:58:52 +01:00
LuckyLaszlo
07e98c7cf8
"e_quotes_state" redefined in minishell_structs.h
2021-11-26 21:31:17 +01:00
LuckyLaszlo
18d430c5cb
CO-CODE Hugo-Luke
...
+ last_exit_status set/get functions for here_doc
+ TODO : replace all occurences of last_exit_status
+ **environ fix
+ builtin_unset() fix
2021-11-26 20:44:29 +01:00
hugogogo
ef3e91be13
variable extern environ fonction avec getenv et export ok
2021-11-25 19:45:41 +01:00
hugogogo
80410e6d81
gestion sigint dans heredoc fonctionne basiquement
2021-11-25 10:06:48 +01:00
hugogogo
ef12d6ba4b
merging conflict
2021-11-18 21:33:47 +01:00
hugogogo
0b6d8cf127
debut modifs heredoc
2021-11-18 19:51:08 +01:00
LuckyLaszlo
0bd9dcb3bb
simple_cmd_builtin() done.
...
+ exec_cmd_line.c split in multiples files
2021-11-18 14:28:56 +01:00
hugogogo
c11c61ec5e
en cours de gestion des signaux dans heredoc
2021-11-18 13:29:57 +01:00
LuckyLaszlo
26993144cc
CO-CODE Hugo-Luke
...
+ signals handling adjusted
+ wait_subshell() with last_exit_status
+ miscs
2021-11-17 01:35:06 +01:00
LuckyLaszlo
965cf99ca5
merge
...
+ readline() replace gnl() in here_doc
+ "int error" in struct "t_cmd"
2021-11-16 22:30:20 +01:00
LuckyLaszlo
140549db00
WIP exec_cmd_line()
...
+ fix error handle in redirections()
+ rename ft_free_cmd_arr() to free_pipeline()
+ "char **path" added to "struct t_all"
+ misc
2021-11-16 08:49:57 +01:00
hugogogo
36766501ba
gestion des signaux avec execve ok dans test
2021-11-15 21:56:50 +01:00
hugogogo
57c271b9e2
signaux fonctionnent sur test
2021-11-15 16:09:19 +01:00
LuckyLaszlo
bb77de0588
cmd_array_fill_argv()
2021-11-14 12:57:18 +01:00
LuckyLaszlo
66b48dc99d
redirections WIP
2021-11-14 11:05:58 +01:00
LuckyLaszlo
1e682f796d
fix invalid read with quotes functions
...
+ ft_free_cmd_arr()
2021-11-14 04:59:38 +01:00
LuckyLaszlo
106af37b58
words_expansions() complete
...
+ TODO : need refactoring and fix to valgrind invalid read size
+ redirections() WIP
+ Generic ft_dup_2d_arr(), ft_split_quotes(), ft_strdup_quotes()
+ shell_loop() continue on error
+ various small fix
2021-11-14 00:09:42 +01:00
hugogogo
47ae67ed14
ajout des builtins pwd cd et export
2021-11-11 17:44:42 +01:00
hugogogo
d65a701186
add ctrl-c and ctrl-d aka eof handling
2021-11-10 13:46:17 +01:00
LuckyLaszlo
0a5c7545c1
WIP parsing expansions
2021-11-07 04:41:17 +01:00
hugogogo
d4151227b3
merge hugogogo with master
2021-11-02 14:04:23 +01:00
hugogogo
27ac62bddc
merging luke remote with origin local
2021-11-02 13:56:26 +01:00
LuckyLaszlo
22d4bbfdd0
norme
2021-10-31 01:10:57 +02:00