Commit Graph

106 Commits

Author SHA1 Message Date
8353d3f64f chore: removed unused and test files 2026-02-13 08:18:25 +01:00
marcnava-42cursus
4756edb727 Added errors file after merge 2026-02-12 22:03:59 +01:00
d06e49274b Merge branch 'feature/executor-gl' into solo 2026-02-12 21:26:12 +01:00
83553a57d5 feat: added variable expansion
quote removal is not implemented yet in this commit
2026-02-12 21:18:50 +01:00
marcnava-42cursus
ff5edf543f Updated AGENTS file with redirections options 2026-02-12 20:32:12 +01:00
marcnava-42cursus
518ec87e60 Deleted tester 2026-02-12 20:28:29 +01:00
marcnava-42cursus
6bc2eab19b feat: Redirections applied
Now redirections work.
> redirects to a file
< reads the content of a file and set it to the input of a command
>> append the output of a command into a file
2026-02-12 20:28:05 +01:00
marcnava-42cursus
3c7ee5b161 Merge branch 'feature/builtins-gl' into feature/executor-gl
# Conflicts:
#	src/parser/parser.c
2026-02-12 18:36:05 +01:00
marcnava-42cursus
d1aad3ed20 Merge branch 'solo' into feature/executor-gl
# Conflicts:
#	src/parser/parser.c
2026-02-12 18:34:26 +01:00
8882929423 update: command list is now freed completely if any error ocurrs 2026-02-12 03:09:45 +01:00
843bdc0061 fix: invalid syntax error cause shown when there was no token following a redirection 2026-02-12 02:57:15 +01:00
ac4965ca6d fix: fixed multiple syntax error logging when redirection value is not a word
pointer is moved to the last position to avoid double logging
2026-02-11 10:12:20 +01:00
9d457f1040 norminette: added space after keyword 2026-02-11 08:37:02 +01:00
6b3d2ba5e0 fix: fixed segfault caused by invalid read
NULL value caused the error logger to crash
2026-02-11 08:36:05 +01:00
c493979a18 update: parser now uses tokens from lexer
fixes pending:
 - some functions are longer than norminette allows
 - find solution to a list of commands being returned, even though a
syntax error is found when processing tokens (maybe delegate some work
to the lexer and return only a syntax-valid list?)
2026-02-11 02:51:30 +01:00
marcnava-42cursus
df6ed1c5cc Executor working, need to validate with the parser fixed, all norme fixed 2026-02-11 02:29:45 +01:00
marcnava-42cursus
e02613253a Fixed command exit status and exec bugs, read relative and absolute paths and correctly resolved 2026-02-11 02:17:40 +01:00
marcnava-42cursus
ae578867b2 Moved find command in path to executor, fixed env save code 2026-02-11 02:09:12 +01:00
marcnava-42cursus
328737c557 Updated AGENTS with info of the current (this branch) parser status, need to be updated again when parser works correctly 2026-02-11 01:38:41 +01:00
1715f2dd40 typo: fixed typo 2026-02-10 12:34:56 +01:00
63dd69b01c update: removed const modifier on token value
following steps on the parsing process can change its content
2026-02-10 09:24:18 +01:00
609a644fa9 update: token is now stored as value of the token instead of null
this change is made so that it is easier to print an error message when
invalid syntax
2026-02-10 09:20:46 +01:00
3d97d6506a fix: removed putendl on malloc 2026-02-10 08:54:11 +01:00
1f0f38e42f fix: removed putendl on free 2026-02-10 08:52:24 +01:00
97d8a6838f norminette: fixed line too long 2026-02-10 08:45:31 +01:00
74111e3da5 update: removed unused macros
not used anymore by lexer
2026-02-09 23:12:04 +01:00
6ad68a8752 update: added lexer 2026-02-09 23:11:33 +01:00
marcnava-42cursus
d39eca2c94 Fixed compilation 2026-02-09 22:48:12 +01:00
marcnava-42cursus
084fa4759c Created allowed.txt to track allowed functions for minishell and updated AGENTS.md to tell codex to not use any forbidden functions, also updated AGENTS.md to add all builtins changes 2026-02-09 22:37:09 +01:00
marcnava-42cursus
778e0c0481 Builtins fixed
The builtins wasnt protected, now all data received is protected, the hashmap addition is protected and added functionality of env, export and unset (not implemented in this version). Added fixed details documentation in docs/builtins_fixes.md generated by codex and created tests/builtins_edge_cases.sh to test all the builtins to work correctly
2026-02-09 22:08:45 +01:00
280fa51f94 save commit 2026-02-09 20:47:43 +01:00
e983f7fe64 update: builtins hashmap initialized and moved env hashmap initialization to set_envp() 2025-12-02 09:13:59 +01:00
b1cf1d8560 update: integrated hashmaps in builtins, and replaced command calls by builtins 2025-12-02 09:11:01 +01:00
dce51960b1 fix: fixed ignored result compilation errro 2025-12-01 16:31:02 +01:00
e9a07a6bfb fix: fixed compilation error 2025-12-01 14:12:15 +01:00
a9ba8492a2 fix: executor.c/handle_child was not using the real envp 2025-12-01 14:09:32 +01:00
83d006b40d fix: Makefile's mandatory rule was not cloning ft_args 2025-12-01 14:06:33 +01:00
027fd2ac5e Merge branch 'feature/builtins' into develop 2025-12-01 14:01:24 +01:00
30ce96284a fix: get_env call was not using minishell struct 2025-12-01 14:01:08 +01:00
956505c06a Merge branch 'feature/builtins' into develop 2025-12-01 14:00:13 +01:00
212c4e3fee update: updated getenv calls by get_env 2025-12-01 13:59:52 +01:00
50736d533d update: changed getenv calls by get_env 2025-12-01 13:52:28 +01:00
daad208a00 update: added hashmap functionality to environment variables 2025-12-01 13:47:17 +01:00
214d7c24d2 update: added echo builtin 2025-11-02 03:14:43 +01:00
52807ca13c Merge branch 'develop' into feature/builtins 2025-11-01 20:42:49 +01:00
2800c7fd6d update: added HYPHEN and UNDERSCORE chardefs 2025-11-01 20:41:06 +01:00
0185d487d1 fix: BACKSLASH was equal to SINGLE_QUOTE 2025-11-01 20:37:51 +01:00
09f7e8aac0 update: added ft_args library 2025-11-01 20:10:40 +01:00
ee7a879de5 update: added cd builtin 2025-10-31 01:41:50 +01:00
5fc0af6bb3 update: minishell execution is now dependant on minishell.exit 2025-10-30 22:39:22 +01:00