Commit Graph
56 Commits
Author SHA1 Message Date
LuckyLaszlo 312c90539b adjustement to ft_strjoin() after libft update
from libft : ft_strjoin() no longer return if an arg is NULL
2021-12-08 03:46:40 +01:00
LuckyLaszlo 8a7611da92 fixed empty quotes expansions 2021-12-08 03:03:16 +01:00
LuckyLaszlo caa733e14a open_pipes() bugfix
+ write "exit" to STDERR (like bash)
+ set_last_exit_status() on CTRL-C
2021-12-08 00:22:06 +01:00
LuckyLaszlo 200e043a8c builtin export fixed and refactored
+ builtin exit, env verif OK
2021-12-06 03:56:05 +01:00
LuckyLaszlo 2d85c34b98 commented debug print in parsing 2021-12-06 01:14:18 +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 2eed0f2d45 little fix, ft_lstnew_generic() prototype.
+ unused c var in builtin_env()
2021-12-03 16:10:04 +01:00
LuckyLaszlo fb1974dd3b redirect readline() prompt to stderr (like bash)
useful for testing program.
2021-12-02 01:47:14 +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 b08da252de lexing comment remove 2021-12-01 16:02:25 +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 33f4878f36 exit status Macro 2021-11-29 12:42:52 +01:00
LuckyLaszlo cb5c2dcb30 "cmd_arr/cmd_array" renamed to "pipeline" 2021-11-29 12:32:03 +01:00
LuckyLaszlo aa7efdab15 delete useless files 2021-11-29 12:15:45 +01:00
LuckyLaszlo 5b3e566b25 searching solution for invalid free in readline. 2021-11-29 12:15:17 +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 b9d7ebb3cb fix last_exit_status.c 2021-11-26 20:51:07 +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
LuckyLaszlo 7c65dcd897 fixed signal exit status only for last command 2021-11-18 14:38:23 +01:00
LuckyLaszlo 0bd9dcb3bb simple_cmd_builtin() done.
+ exec_cmd_line.c split in multiples files
2021-11-18 14:28:56 +01:00
LuckyLaszlo 91d5a0d14c pipeline_exec() complete
+ TODO : simple_cmd_builtin()
+ libft small update
2021-11-18 12:38:27 +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
LuckyLaszlo bb77de0588 cmd_array_fill_argv() 2021-11-14 12:57:18 +01:00
LuckyLaszlo 402196b9a9 fix here_doc leak 2021-11-14 11:15:30 +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
LuckyLaszlo 86707f9fc6 libft small change 2021-11-13 23:45:10 +01:00
LuckyLaszlo 0ae84abb14 bugfix expansions 2021-11-08 04:02:43 +01:00
LuckyLaszlo 0a5c7545c1 WIP parsing expansions 2021-11-07 04:41:17 +01:00
LuckyLaszlo 22d4bbfdd0 norme 2021-10-31 01:10:57 +02:00
LuckyLaszlo c0ef57499a lexing refactoring 2021-10-30 22:47:02 +02:00
LuckyLaszlo ab2aa509df signals and termios WIP
+ shell script placeholder
+ generics functions
+ valgrind add_history() supp
+ misc
2021-10-30 16:39:24 +02:00
LuckyLaszlo 58ef5a4a03 Fix free for final empty token. 2021-10-30 12:44:06 +02:00
LuckyLaszlo 815cedb8ca syntax analysis with simplified shell grammar
+ TODO : bug to fix in lexer.c
2021-10-24 19:58:19 +02:00
LuckyLaszlo 906074d2cb envp dup array
+ c->last_exit_status
2021-10-24 10:23:20 +02:00
LuckyLaszlo 39de10e001 echo builtin
+ WIP grammar rules in parsing.txt
+ test trop_de_pipes.sh
2021-10-22 10:53:06 +02:00
LuckyLaszlo 1054f3d6ff lexer (need refactoring)
+ littles miscs
2021-10-19 20:25:41 +02:00
LuckyLaszlo e451a1f050 arg_test program
+ comment libncurses-dev install
2021-10-13 16:11:13 +02:00
LuckyLaszlo a701488b6a valgrind suppression file for readline()
+ ./.valgrindrc
+ basic free_exit()
+ U_DEFAULT_* macro in _user_macro.h
2021-10-11 01:58:57 +02:00
LuckyLaszlo c0068a5ec7 wip builtins: env, exit 2021-10-10 08:57:33 +02:00
LuckyLaszlo a7e0066458 refactoring 2021-10-08 19:15:21 +02:00
LuckyLaszlo dae94fee81 fixed readline() prompt offset with '\001' and '\002' escape characters.
Colors change works, still bug with special chars like '€' .
2021-10-07 07:24:37 +02:00
LuckyLaszlo f0e19b02d4 test prompt and readline 2021-10-04 06:15:06 +02:00
LuckyLaszlo a6cd189b19 rename folders 2021-10-03 19:37:35 +02:00
LuckyLaszlo 93de7422bf init 2021-10-03 19:17:19 +02:00