Commit Graph

63 Commits

Author SHA1 Message Date
Quinten Mennen
f6c2754882 make norminette happy(er) 2025-03-05 21:19:02 +01:00
whaffman
09e4befa22 command->command is too much, print pretty please 2025-03-04 18:42:12 +01:00
whaffman
dbe5a0d433 some more export and malloc safe returns null if size zero 2025-03-04 18:17:25 +01:00
whaffman
f8236d14d1 strdup_safe returns null if source was null;
environment needs to check for NULL
2025-03-04 10:58:11 +01:00
whaffman
e824b59969 maybe we do need errrno not sure 2025-03-03 22:33:49 +01:00
whaffman
74bc47171f error_msg and soem norm 2025-03-03 14:36:03 +01:00
whaffman
b4bb4c900e only frre is not null, and put flags in Makefile 2025-03-03 12:02:13 +01:00
whaffman
de9f3f7f8c NORM 2025-03-02 22:15:46 +01:00
whaffman
0f2040cb9f make ft_split_safe and environment safe 2025-03-02 22:08:37 +01:00
whaffman
f9062d4385 error_MSG in builtin_cd/exit 2025-03-01 14:11:46 +01:00
whaffman
888476ea0c Made NOBANNER NOPROMPT and NOCOLOR FLAGS for make,
make run FLAGS="-DNOCOLORS -DNOBANNER -DNOPROMPT"
2025-03-01 12:01:56 +01:00
whaffman
0e72632168 minor fixes 2025-02-28 15:27:09 +01:00
whaffman
23e987b5bf parse $? 2025-02-26 17:44:59 +01:00
Quinten Mennen
4cb8ca86b9 fix error title 2025-02-26 16:56:24 +01:00
Quinten Mennen
f3bd69a2e9 s 2025-02-26 16:29:25 +01:00
Quinten Mennen
46a39c17cb validating redirects WIP 2025-02-26 16:24:30 +01:00
whaffman
c366ddd6d6 norm 4 2025-02-26 16:21:17 +01:00
whaffman
5d01cf3086 minishell -> msh 2025-02-26 16:17:07 +01:00
whaffman
c2efcca0fa norm 2 2025-02-26 15:45:10 +01:00
whaffman
7b1951bf85 DDEBUG 2025-02-25 18:31:14 +01:00
whaffman
8e5f90436a vallgrind 2025-02-25 17:54:44 +01:00
whaffman
91cb0af6ef Free_safe implemented, ft_lstnew_safe and ft_lstclear_safe added
ft_strdup_safe added
ft_strjoin_safe added
2025-02-25 16:55:13 +01:00
whaffman
07f48cfc62 free_safe working state WIP 2025-02-25 15:43:56 +01:00
whaffman
ab72bd5bbb malloc_safe
- add freelist to minishell
- add t_minishell *minishell to all function calling malloc_free
- substituted all malloc calls but the first to malloc_safe
2025-02-25 14:54:17 +01:00
whaffman
1d4316cbf1 Merge remote-tracking branch 'origin/main' into willem 2025-02-23 13:36:40 +01:00
whaffman
757aea6464 make help 2025-02-23 13:33:09 +01:00
Quinten
ea90a00c33 merge main into quitnen 2025-02-23 12:46:02 +01:00
Quinten
2117a6538e redirects 2025-02-23 12:44:31 +01:00
Quinten
45968e547e parsing input redirects 2025-02-23 12:20:19 +01:00
whaffman
8da0e0a036 error_msg and safe strdup strjoin and malloc 2025-02-20 18:09:28 +01:00
whaffman
d289065ade feat: builtin router, checker and buitlin stubs 2025-02-20 11:43:15 +01:00
whaffman
c368cf80ea exit status at the end of the executor_execute_pipeline 2025-02-18 16:00:38 +01:00
whaffman
68efadf4ac feat: made an executer and commented print functions out for show 2025-02-12 20:52:49 +01:00
whaffman
a1b064fdfc fixed many malloc in prompt, chaged name history, added command to front of arg list so that its argv[0] 2025-02-12 13:00:51 +01:00
whaffman
486a207834 norm errors 2025-02-11 17:22:11 +01:00
Quinten Mennen
c55ce246f9 chore: remove obsolete print list 2025-02-11 16:38:35 +01:00
Quinten Mennen
21b3245ebf Merge branch 'quinten' 2025-02-11 16:35:38 +01:00
Quinten Mennen
3dda5621b6 feat: include command parsing in minishell struct 2025-02-11 16:35:32 +01:00
Quinten Mennen
31ca9a5877 Merge branch 'quinten' 2025-02-11 16:29:53 +01:00
Quinten Mennen
0992ae20cf feat: parsing a token list into a command list 2025-02-11 16:29:31 +01:00
Quinten Mennen
d2f3b5a1c2 chore: remove old banner comment 2025-02-11 16:28:19 +01:00
Quinten Mennen
133acaeb17 fix: return prompt when line is empty 2025-02-11 16:28:10 +01:00
whaffman
83c50f511f fixed get_user and prompt 2025-02-11 16:19:26 +01:00
whaffman
bb0e90c846 environment_del en simple unset 2025-02-11 14:35:00 +01:00
whaffman
5c1d76fe83 Merge branch 'willem' 2025-02-11 14:09:54 +01:00
whaffman
fdd71aae13 Merge branch 'test_execve' into willem 2025-02-11 14:06:38 +01:00
Quinten Mennen
97b6321983 Merge branch 'test_execve' into quinten 2025-02-11 14:04:22 +01:00
whaffman
b49a8e5368 fork_execve 2025-02-11 14:03:18 +01:00
Quinten Mennen
bfaa716db3 Merge branch 'test_execve' into quinten 2025-02-11 14:02:14 +01:00
whaffman
7cad14f636 display exit status of the last command 2025-02-09 16:20:44 +01:00