Commit Graph

50 Commits

Author SHA1 Message Date
marcnava-42cursus
77a704a09a norma arreglada 2026-02-14 15:12:25 +01:00
marcnava-42cursus
73ed56aa16 heredoc and builtins fix 2026-02-14 14:26:58 +01:00
f4cfae1107 feat: added internal variables 2026-02-14 02:01:10 +01:00
marcnava-42cursus
6453abfda3 Fixed all norme from lexer, parser. minishell and builtins 2026-02-14 00:02:03 +01:00
3f17f7789c update: added isatty support and prompt usage 2026-02-13 20:18:26 +01:00
marcnava-42cursus
c166d0f77a feat: Added signals
Added functionality of the signals ctrl+d, ctrl+c and ctr+\
2026-02-13 18:11:48 +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
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
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
ae578867b2 Moved find command in path to executor, fixed env save code 2026-02-11 02:09:12 +01:00
74111e3da5 update: removed unused macros
not used anymore by lexer
2026-02-09 23:12:04 +01:00
marcnava-42cursus
d39eca2c94 Fixed compilation 2026-02-09 22:48:12 +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
b1cf1d8560 update: integrated hashmaps in builtins, and replaced command calls by builtins 2025-12-02 09:11:01 +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
8194a1d8d8 Merge branch 'feature/builtins' into develop 2025-10-30 13:25:09 +01:00
78944cfa67 Merge branch 'feature/executor' into develop 2025-10-30 13:24:31 +01:00
cbfedb7bc5 structure: moved t_command struct definition from parser header file to core header file 2025-10-30 12:56:35 +01:00
a6bf9cb60f update: added characters to chardefs 2025-10-30 12:52:30 +01:00
64610183aa update: updated parameters for pwd builtin 2025-10-30 12:07:21 +01:00
0a0fa27b6b update: added exit builtin function definition 2025-10-30 12:04:39 +01:00
1781fa96c4 update: added builtins header file 2025-10-30 01:18:39 +01:00
31a8717bbe update: added simple executor 2025-10-29 20:57:15 +01:00
c90fb3ef67 Merge branch 'feature/core' into develop 2025-10-23 23:20:58 +02:00
f8c6aed23d update: variables are now stored separeatedly in t_variables and lines are stored and parsed on each execution 2025-10-23 14:33:57 +02:00
4546c7c252 update: added extremely basic parsing, only for separated environment variables 2025-10-23 14:33:57 +02:00
b55dd50aa5 update: added extremely basic parsing, only for separated environment variables 2025-10-23 14:10:48 +02:00
92ed2bbd3e structure: moved core functions (init, run, clear) to core.h to prevent circular include 2025-10-22 19:36:59 +02:00
b337b86190 structure: moved core functions (init, run, clear) to core.h to prevent circular include 2025-10-22 19:35:38 +02:00
c680555c0d chore: added core base utilities 2025-10-22 17:05:00 +02:00
982bbca0fc update: added header file with library inclusions 2025-10-20 20:40:49 +02:00
56a19a23bc restart: deleted all source and header files, restarting project 2025-10-20 12:49:35 +02:00
161ac6b69d saved changes before repartition 2025-09-12 12:41:24 +02:00
3e7dd56340 update: functions done: echo + echo -n, pwd, exit with and without arguments / parser appears to work, test with commands and local files (only tested with ls -l) 2025-08-04 00:38:53 +02:00
e89de4e20b update: removed .gitkeep from all directories 2025-08-01 03:32:08 +02:00
sdevsantiago
7b7d500db9 update: executes commands only in /usr/bin 2025-07-31 14:45:06 +02:00
Sergio
8f8f91994e Initial commit 2025-07-31 03:22:38 +02:00