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
8b33185add
readability
2025-02-23 13:14:48 +01:00
Quinten
e13eff0669
util
2025-02-23 13:12:06 +01:00
Quinten
fd72fbb0d3
general fixes to redirects
2025-02-23 13:11:06 +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
3c14325711
some more structure
2025-02-23 12:34:34 +01:00
Quinten
45968e547e
parsing input redirects
2025-02-23 12:20:19 +01:00
whaffman
e83df82dc3
create better Makefile
2025-02-23 11:59:59 +01:00
Quinten
24752c9d08
temp
2025-02-23 11:58:13 +01:00
whaffman
8c02b32601
dont throw away of_fd before testing the new one
2025-02-21 13:17:22 +01:00
whaffman
3631e127e4
redirects and fds+count
2025-02-21 13:03:49 +01:00
whaffman
8da0e0a036
error_msg and safe strdup strjoin and malloc
2025-02-20 18:09:28 +01:00
Quinten Mennen
a9f356176f
redirect setup
2025-02-20 17:54:34 +01:00
whaffman
a93185a45e
fixe builtin exit to accept arguments
2025-02-20 15:54:48 +01:00
whaffman
eda2954279
builtins working
2025-02-20 15:10:38 +01:00
whaffman
d289065ade
feat: builtin router, checker and buitlin stubs
2025-02-20 11:43:15 +01:00
whaffman
12c439afb0
Merge branch 'willem'
2025-02-19 18:00:09 +01:00
whaffman
450add4cb7
fixed signal and removed infloop after unicode nofix
2025-02-19 17:56:57 +01:00
Quinten Mennen
4621fd2497
move token print to debug
2025-02-19 17:30:34 +01:00
Quinten Mennen
a2f5656b15
oops
2025-02-19 16:54:00 +01:00
Quinten Mennen
b188c4c6ac
fix source index
2025-02-19 16:50:24 +01:00
Quinten Mennen
fbe2c51d41
Merge branch 'quinten'
2025-02-19 16:38:29 +01:00
Quinten Mennen
9f6f48c0ef
expansion
2025-02-19 15:24:06 +01:00
whaffman
49d3a8232b
preliminary signals
2025-02-19 13:58:50 +01:00
whaffman
9f5c134517
first signals in minshell
2025-02-19 12:47:09 +01:00
Quinten Mennen
ce028b7b6f
refactoring expander
2025-02-18 21:04:26 +01:00
Quinten Mennen
1cccbad890
And we're back again
2025-02-18 20:36:40 +01:00
Quinten Mennen
4793ab36b4
better expension but cat doesnt work
2025-02-18 20:32:42 +01:00
Quinten Mennen
6d308b4a67
we're expanding
2025-02-18 20:04:56 +01:00
Quinten Mennen
4005f98b16
refactor: naming conventions
2025-02-18 17:03:40 +01:00
Quinten Mennen
adee957c2d
refactor: parsing tokens is now less bulky
2025-02-18 17:03:11 +01:00
whaffman
c368cf80ea
exit status at the end of the executor_execute_pipeline
2025-02-18 16:00:38 +01:00
whaffman
0784d3cf04
fixed some norm
2025-02-13 15:05:17 +01:00
whaffman
3c04887ffb
use environment_free if you can!
2025-02-12 21:39:30 +01:00
whaffman
c02e19bfc8
split executor in files
2025-02-12 21:30:04 +01:00
whaffman
68efadf4ac
feat: made an executer and commented print functions out for show
2025-02-12 20:52:49 +01:00
whaffman
b196377066
add executor_fork and executor_child
2025-02-12 19:14:05 +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
Quinten Mennen
df6b7a41ae
feat: add heredoc token
2025-02-11 17:39:51 +01:00
whaffman
486a207834
norm errors
2025-02-11 17:22:11 +01:00
whaffman
fa04c4e265
Merge branch 'main' of github.com:WHaffmans/minishell
2025-02-11 16:47:56 +01:00
whaffman
ed7a23eeb3
tabs
2025-02-11 16:45:30 +01:00
Quinten Mennen
14b3d3f144
fix: built in functions are back
2025-02-11 16:38:46 +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
71d1797a22
made environment use ft_lstclear
2025-02-11 16:11:58 +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
Quinten Mennen
015c5eb330
feat: setup for parser
2025-02-11 14:07:46 +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
whaffman
e9a1db9cac
excutor_absolute_path WIP checks for file existence
2025-02-09 16:19:51 +01:00
whaffman
4c6f5998d4
print executable path
2025-02-09 16:18:30 +01:00
whaffman
6f21f11429
display exit status of the last command
2025-02-09 16:04:57 +01:00
whaffman
2d8c58c7a9
print executable path
2025-02-08 19:46:45 +01:00
whaffman
3aa6459969
executor_absolute_path
2025-02-08 19:42:34 +01:00
whaffman
f4bf733040
excutor_absolute_path WIP checks for file existence
2025-02-08 19:30:24 +01:00
whaffman
869eb0d857
Environment
...
environment: rename functions
environment: add get_arr function
builtins: add export builtin
2025-02-08 14:43:53 +01:00
whaffman
ef1a3f8a39
enviroment -> t_list
2025-02-07 16:22:30 +01:00
whaffman
6c726f67f1
enviroNment
2025-02-07 16:01:12 +01:00
Quinten Mennen
0c23778911
nicer banner
2025-02-06 16:37:28 +01:00
Quinten Mennen
43583e5795
fix readme
2025-02-06 16:15:59 +01:00
Quinten Mennen
75cbe896ce
banner work
2025-02-06 13:37:12 +01:00
Quinten Mennen
473135b33d
print error
2025-02-05 20:48:45 +01:00
Quinten Mennen
f86720a3ec
feat: now it really works with double qoutes
2025-02-05 19:58:22 +01:00
Quinten Mennen
8dde78ee19
we are norminette compliant
2025-02-05 19:50:06 +01:00
Quinten Mennen
3aa1098b29
refactor: upate logo
2025-02-05 19:48:20 +01:00
Quinten Mennen
8e4baccc22
fix: works with any amount of quotes now
2025-02-05 19:27:29 +01:00
Quinten Mennen
a88a4656e3
chore: split up function in multiple files
2025-02-05 19:12:27 +01:00
Quinten Mennen
8f9c2e33e8
Merge branch 'main' into quinten
2025-02-05 18:59:35 +01:00
whaffman
39af6d2d52
add persistent history
2025-02-05 17:14:12 +01:00
whaffman
c2ca3c4176
norm
2025-02-05 16:29:18 +01:00
whaffman
f64e1f055d
split functions cleanup init and free process
2025-02-05 16:24:17 +01:00
Quinten Mennen
b909668a1a
refactor: god struct lexer and error message
2025-02-05 15:52:30 +01:00
Quinten Mennen
914d9cf644
feat: return error token on onclosed double
2025-02-05 15:52:07 +01:00
whaffman
55ba622714
fixed headers, and function defenitions for prompt
2025-02-05 12:48:04 +01:00
whaffman
ebecccc201
username in prompt
...
banner at starting of shell
preliminary builtins: exit, clear, env
2025-02-04 23:45:19 +01:00
whaffman
1ee3793433
main samengevoegd, prompt home ~, kleurtjes
2025-02-04 22:53:46 +01:00
whaffman
f90b371ace
Merge remote-tracking branch 'origin/quinten' into willem
2025-02-04 21:43:05 +01:00
Quinten Mennen
34b431177e
doc: github pilot docs
2025-02-04 20:57:49 +01:00
Quinten Mennen
0ed724ba83
chore: more organisation
2025-02-04 20:54:58 +01:00
Quinten Mennen
34867c05a3
chore: make it norminette compliant
2025-02-04 20:52:28 +01:00
Quinten Mennen
f8a4e1e091
feat: parse input, get list
2025-02-04 20:46:35 +01:00
Quinten Mennen
b252b01268
clean-up parsing a bit
2025-02-04 20:40:39 +01:00
Quinten Mennen
fc71f3c9ca
proof of concept on lexing
2025-02-04 20:15:06 +01:00
whaffman
c111b8cbc7
broken prompt
2025-02-04 18:59:51 +01:00
whaffman
de6bb00acf
added prompt header and made main
2025-02-04 16:42:55 +01:00
whaffman
b67f3a20ab
added codam header
2025-02-04 16:17:05 +01:00
whaffman
3d0d062495
split enviroment functions, and util files
2025-02-04 15:57:26 +01:00
whaffman
57fb0c0af1
added libft as a submodule
2025-02-04 13:51:47 +01:00