whaffman
f2aa33ba24
start is unused
2025-02-28 13:57:08 +01:00
Quinten Mennen
20e71efa5f
quick todo
2025-02-27 19:30:16 +01:00
Quinten Mennen
d13fb174c5
quote parsing, love it
2025-02-27 19:29:49 +01:00
Quinten Mennen
2d9b35d127
ofc last minute bug
2025-02-27 19:22:23 +01:00
Quinten Mennen
e07d4b4d79
last rework for the day, hello""world now read helloworld correctly
2025-02-27 19:21:05 +01:00
Quinten Mennen
48256b2c81
extracting more
2025-02-27 19:04:02 +01:00
Quinten Mennen
547dacc0ba
small fix
2025-02-27 18:59:00 +01:00
Quinten Mennen
efd4d3f751
extract token conversion funcs
2025-02-27 18:49:04 +01:00
Quinten Mennen
15b7de994e
WAY better quote handling
2025-02-27 18:48:41 +01:00
Quinten Mennen
f33d88642d
details
2025-02-27 18:12:53 +01:00
Quinten Mennen
0d555a5480
norminette okay again
2025-02-27 18:12:13 +01:00
Quinten Mennen
05b7ae3a6a
norminette made me do it
2025-02-27 18:11:44 +01:00
Quinten Mennen
3cc3dff55c
Merge branch 'willem' into quinten
2025-02-27 17:46:46 +01:00
Quinten Mennen
ae010a33f6
sys stat already included in allowed.h
2025-02-27 16:51:59 +01:00
Quinten Mennen
e366689f91
extract into helper for norminette
2025-02-27 16:46:47 +01:00
Quinten Mennen
abdab3156c
error message instead of putstrfd
2025-02-27 16:46:34 +01:00
Quinten Mennen
dd76e2c521
norminette
2025-02-27 16:21:49 +01:00
Quinten Mennen
e5b30c8796
func explains itself really
2025-02-27 16:21:44 +01:00
Quinten Mennen
c2f062c671
refactor: lexer
2025-02-27 16:18:57 +01:00
Quinten Mennen
4cdc9c3530
more refactor for parser
2025-02-27 16:09:36 +01:00
Quinten Mennen
e5569d9b0b
refactor: creating commands
2025-02-27 16:05:15 +01:00
Quinten Mennen
859b9c181a
fix: dir check after path confirmed
2025-02-27 16:02:41 +01:00
Quinten Mennen
bceabcb382
fix: message
2025-02-27 16:01:11 +01:00
Quinten Mennen
13adfc5a07
fix: check if path is a dir
2025-02-27 15:58:18 +01:00
Quinten Mennen
90678d8f0f
check if the path found is executable
2025-02-27 13:09:30 +01:00
Quinten Mennen
3b1ad5500b
fix expanding
2025-02-27 13:06:44 +01:00
whaffman
bc019e4c04
Merge remote-tracking branch 'origin/quinten' into willem
2025-02-26 22:56:31 +01:00
Quinten Mennen
11b19749f0
print correct command output
2025-02-26 18:36:45 +01:00
Quinten Mennen
5b3d446b75
null terminate exapnd string mem
2025-02-26 18:36:33 +01:00
Quinten Mennen
2059f7d634
norminette parse string
2025-02-26 18:36:16 +01:00
Quinten Mennen
5f30d2b650
fix: only parse dqword with $
2025-02-26 18:36:06 +01:00
Quinten Mennen
ce2c50e753
redirect norminette
2025-02-26 17:45:05 +01:00
whaffman
23e987b5bf
parse $?
2025-02-26 17:44:59 +01:00
Quinten Mennen
d96b23ca02
redirect out
2025-02-26 17:27:38 +01:00
Quinten Mennen
46bea87309
get inputs is done
2025-02-26 17:25:22 +01:00
Quinten Mennen
abb2e8563a
space replace tab
2025-02-26 16:57:17 +01:00
Quinten Mennen
4cb8ca86b9
fix error title
2025-02-26 16:56:24 +01:00
Quinten Mennen
c8806e22c6
process heredoc new structure
2025-02-26 16:54:33 +01:00
Quinten Mennen
910a4dcf7f
I can't check for a file that doesn't exist
2025-02-26 16:45:28 +01:00
Quinten Mennen
12ab3f5e12
check file availability
2025-02-26 16:42:50 +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
a5e877fdd5
norm 1
2025-02-26 15:27:53 +01:00
Quinten Mennen
8bb6c5d5fe
this should do it
2025-02-25 21:27:19 +01:00
Quinten Mennen
1bd1b8404c
see if this fixes seg
2025-02-25 21:03:36 +01:00
Quinten Mennen
f67c5a0f21
clear history on shell end
2025-02-25 21:00:40 +01:00
Quinten Mennen
aba5e2f28b
some todos
2025-02-25 21:00:29 +01:00
Quinten Mennen
40c2080447
print tokens on debug
2025-02-25 20:56:16 +01:00
Quinten Mennen
e0e77f4012
processing heredocs
2025-02-25 20:55:30 +01:00
Quinten Mennen
0b250580f2
remove obsolete malloc check
2025-02-25 19:59:18 +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
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