Commit graph

24 commits

Author SHA1 Message Date
mcolonna
0898d3b79a [ADD] signals handler *
also reorganize the code
2024-06-18 15:43:22 +02:00
mcolonna
44daaaf097 Merge manage variables with builtins & history 2024-06-06 16:37:28 +02:00
mcolonna
38170c7211 [ADD] manage variables *
Also:
- dev:
  - add docu
  - add fixes in TODO
  - add FIXME
2024-06-06 16:00:38 +02:00
joris schaft
d3fdd3bbf6 [ADD] cd builtin 2024-06-03 14:32:45 +02:00
joris schaft
1d6bd27675 [ADD] history 2024-05-31 13:47:33 +02:00
mcolonna
2ce36c258e Merge exec_command and parse_command modifications 2024-05-16 18:27:57 +02:00
mcolonna
d165229b59 norm 2024-05-16 18:11:08 +02:00
mcolonna
75bbeed855 libtfise 2024-05-16 17:32:07 +02:00
mcolonna
0c3d0ff95b make code more readable and fix things 2024-05-16 13:30:44 +02:00
joris schaft
9d70f4ccb2 [ADD] multiple pipe 2024-05-13 14:10:41 +02:00
mcolonna
74564daa52 libtfise everything 2024-05-01 18:00:40 +02:00
mcolonna
d7b4631701 redirections, empty command, parse errors++ 2024-04-30 16:27:59 +02:00
mcolonna
8d5ccfeb82 check some TODOs
- "is t_call.argv ended by NULL?"
- "does it return the good path if there is several possibilities?"
2024-04-29 15:56:49 +02:00
mcolonna
117631d50e manage errors 2024-04-29 15:49:12 +02:00
mcolonna
3a85b1a195 [FIX] wait all programs to end before prompting 2024-04-26 14:23:37 +02:00
mcolonna
149bafef88 check TODO 2024-04-26 12:33:38 +02:00
mcolonna
d90fc62be5 change execute_call() and fork_exec() prototypes 2024-04-26 12:28:23 +02:00
mcolonna
7df3184578 fix errors. Remaining errors:
- segfault when empty command
- doesn't wait for the end of the command before prompting
2024-04-25 18:15:37 +02:00
mcolonna
6066d0529b Merge exec_command() and parse_command() branchs 2024-04-25 17:47:21 +02:00
mcolonna
e3c98f2d22 [FIX] several things*
fix:
- free_tab(): useless line
- fork_exec(): comp error
change:
- search_path() works differently (doesn't modify path)
- execute_command() is changed accordingly
- get_path() now returns a non-const
2024-04-25 17:34:14 +02:00
mcolonna
af6488534b [ADD] parse_command() 2024-04-25 16:59:09 +02:00
mcolonna
24d8b38510 Merge branch 'mylan2' into mylan 2024-04-24 13:29:49 +02:00
mcolonna
2da8cbabdd add ask_command() and minishell_error() 2024-04-23 16:02:01 +02:00
mcolonna
a0ad80a375 basic functions to make 2024-04-23 14:55:47 +02:00