Commit Graph

178 Commits

Author SHA1 Message Date
savalet
0ff8b92f73 Add basic readline 2025-04-20 17:04:54 +02:00
savalet
107db99244 Merge branch 'history_T_A' 2025-04-17 20:34:43 +02:00
Arthur-gtr
6a36472ed3 [FIX] divide shell loop
[FIX] true false
2025-04-17 20:25:58 +02:00
savalet
a183a539d9 Fix change shell command check 2025-04-17 20:01:41 +02:00
savalet
0d2c97bacf Merge pull request #5 from Savapitech/history_T_A
[FIX] FREE AND divide shell loop
2025-04-17 20:00:22 +02:00
Arthur-gtr
3fd9690902 [FIX] coding style 2025-04-17 19:59:24 +02:00
Arthur-gtr
9745cad74a [FIX] 2025-04-17 19:52:00 +02:00
Arthur-gtr
67c07cd204 [FIX] int by bool 2025-04-17 19:49:03 +02:00
Arthur-gtr
fb7bc2a19c [ADD] divide shell loop 2025-04-17 19:36:32 +02:00
savalet
a640b21515 Merge pull request #4 from Savapitech/VARS_T
[ADD] error handling on env variables
2025-04-17 16:38:20 +02:00
Titouanhct
40d5b2389e [ADD] error handling on env variables 2025-04-17 16:35:22 +02:00
savalet
38588151a6 Fix ast coding style 2025-04-17 16:08:29 +02:00
savalet
db1f2277cc Merge pull request #3 from Savapitech/if_S
Add single && and || handling
2025-04-17 15:33:14 +02:00
savalet
9a5f7d614e Merge branch 'main' into if_S 2025-04-17 15:32:16 +02:00
savalet
94f7111734 Add single && and || handling 2025-04-17 15:27:44 +02:00
savalet
e09b152923 Merge pull request #2 from Savapitech/VARS_T
ENV variables implemented
2025-04-17 12:33:38 +02:00
Titouanhct
e353d2ad15 [FIX] requested changes for the PR 2025-04-17 12:29:57 +02:00
Titouanhct
67f5e6c1b5 [ADD] Handling the environnement variable to be used in commands 2025-04-17 12:13:11 +02:00
Arthur-gtr
3e14bbb05d [FIX] error with the malloc due to the missing parentheses 2025-04-17 11:01:07 +02:00
Arthur-gtr
dfb2543378 [ADD] free in shell loop and parse history 2025-04-17 10:55:34 +02:00
savalet
67dcfc2f41 Add && and || parsing 2025-04-16 23:14:33 +02:00
savalet
e83eb5cf10 Remove \n in U_DEBUG_MSG 2025-04-16 23:14:22 +02:00
savalet
9eadb049ac Remove unused debug msg 2025-04-16 23:14:10 +02:00
savalet
72860a5d9d Fix ast alloc 2025-04-16 23:14:03 +02:00
savalet
ceb256325e Add print ast 2025-04-16 23:13:54 +02:00
savalet
732d0baeb9 Add big test 2025-04-16 23:13:45 +02:00
savalet
f7bc2f38ae Merge pull request #1 from Savapitech/history_T_A
add builtins history
2025-04-16 18:36:38 +02:00
Titouanhct
bf421ce1ee [FIX] changes sugested during the PR 2025-04-16 18:32:56 +02:00
Titouanhct
fc16e65bb9 [FIX] coding style on len_array 2025-04-16 18:13:54 +02:00
savalet
85f34a218e Remove ALL alias in the wrong branch 2025-04-16 17:58:53 +02:00
Titouanhct
84e5669f89 [FIX] double free on some history commands 2025-04-16 17:41:42 +02:00
Arthur-gtr
a181f34a72 Merge remote-tracking branch 'refs/remotes/origin/history_T_A' into history_T_A 2025-04-16 15:17:33 +02:00
Titouanhct
87373b6de4 [FIX} history problem begininning by 0 instead of 1 2025-04-16 15:13:32 +02:00
Arthur-gtr
2a69b955a2 Merge branch 'history_T_A' of github.com:Savapitech/42sh into history_T_A 2025-04-16 15:08:42 +02:00
Arthur-gtr
fa76f0d715 [ADD] Alias builtin 2025-04-16 14:58:28 +02:00
Titouanhct
ef10912afa Merge branch 'history_T_A' of github.com:Savapitech/42sh into history_T_A 2025-04-16 14:52:49 +02:00
Titouanhct
0d825c9cdb [ADD] fix some issues when using it not solo for the history 2025-04-16 14:51:51 +02:00
tekClovis
e780d67b92 [FIX] catch of control c 2025-04-16 09:35:44 +02:00
tekClovis
8478309d2d try to push 2025-04-16 08:56:53 +02:00
tekClovis
7c8ceb9c34 [ADD] while in a fork with (to fix: ctrl d infinite loop and need to verify free) 2025-04-16 04:56:21 +02:00
Arthur-gtr
c620d6f8ce [ADD] first step for alias builtin add pointer function and struct 2025-04-16 02:14:32 +02:00
tekClovis
b710f2f25d [ADD] visit loop with fanalyser warning and not working for the moment 2025-04-15 21:04:56 +02:00
tekClovis
472ad7fc72 [FIX] pipe work with semi 2025-04-15 19:35:32 +02:00
Titouanhct
aa2a18ba03 [FIX] coding style 2025-04-15 19:21:53 +02:00
Titouanhct
23c43697e5 [ADD] history builtins to display the history 2025-04-15 19:18:19 +02:00
Arthur-gtr
bb0463622e [FIX] error with one 2025-04-15 19:14:42 +02:00
Titouanhct
4f26a02c8a [FIX] fanalyser problems plus the rest of the basic history such as double exclamation marks 2025-04-15 17:55:47 +02:00
tekClovis
fd0decdb27 [FIX] simple command exec 2025-04-15 17:06:25 +02:00
tekClovis
66d9176ab5 [ADD] pars loop(need to modify foreach iterator) 2025-04-15 16:59:26 +02:00
tekClovis
0559e947ae [MV] file of ast in ast 2025-04-15 15:35:14 +02:00