]> git.dkaiser.de - 42/minishell.git/log
42/minishell.git
12 months agoMerge builtins into mai
Dominik Kaiser [Tue, 14 Jan 2025 15:46:38 +0000 (16:46 +0100)]
Merge builtins into mai

12 months agoMerge branch 'main' into echo-builtint
Dominik Kaiser [Tue, 14 Jan 2025 15:40:30 +0000 (16:40 +0100)]
Merge branch 'main' into echo-builtint

12 months agoMerge interpreter into main
Dominik Kaiser [Tue, 14 Jan 2025 15:39:40 +0000 (16:39 +0100)]
Merge interpreter into main

Interpreter

12 months agoMerge env into main
Dominik Kaiser [Tue, 14 Jan 2025 15:32:38 +0000 (16:32 +0100)]
Merge env into main

13 months agoMerge branch 'main' into env
cuhlig [Tue, 17 Dec 2024 14:27:06 +0000 (15:27 +0100)]
Merge branch 'main' into env

15 months agorestored merge conflict error"
Christopher Uhlig [Fri, 25 Oct 2024 19:00:39 +0000 (21:00 +0200)]
restored merge conflict error"
"

15 months agoupdate for builtins and extra functions
Christopher Uhlig [Fri, 25 Oct 2024 18:53:44 +0000 (20:53 +0200)]
update for builtins and extra functions

15 months agoresolved merge conflicts
Christopher Uhlig [Fri, 25 Oct 2024 18:44:14 +0000 (20:44 +0200)]
resolved merge conflicts

15 months agoadjuste input parameter for builtins
Christopher Uhlig [Fri, 25 Oct 2024 13:56:05 +0000 (15:56 +0200)]
adjuste input parameter for builtins

15 months agoadjusted function prototype
Christopher Uhlig [Fri, 25 Oct 2024 13:54:49 +0000 (15:54 +0200)]
adjusted function prototype

15 months agoassigned null to en struct against segfault
Christopher Uhlig [Fri, 25 Oct 2024 13:53:59 +0000 (15:53 +0200)]
assigned null to en struct against segfault

15 months agoadjusted header for env
Christopher Uhlig [Fri, 25 Oct 2024 13:51:12 +0000 (15:51 +0200)]
adjusted header for env

15 months agonorm
Christopher Uhlig [Fri, 25 Oct 2024 13:50:31 +0000 (15:50 +0200)]
norm

15 months agodate
Christopher Uhlig [Fri, 25 Oct 2024 13:49:59 +0000 (15:49 +0200)]
date

15 months agoHandle all redirections except APPEND
Dominik Kaiser [Fri, 25 Oct 2024 11:44:13 +0000 (13:44 +0200)]
Handle all redirections except APPEND

TODO: Add APPEND handling
TODO: Fix permissions

15 months agoFinish pipes I guess
Dominik Kaiser [Fri, 25 Oct 2024 10:51:07 +0000 (12:51 +0200)]
Finish pipes I guess

Somehow this worked at the first try.
This'll have to be tested more thoroughly.

15 months agoAdd pipe basics
Dominik Kaiser [Tue, 22 Oct 2024 13:42:28 +0000 (15:42 +0200)]
Add pipe basics

TODO: Add actual piping

15 months agoAdd basic command execution
Dominik Kaiser [Mon, 21 Oct 2024 13:08:10 +0000 (15:08 +0200)]
Add basic command execution

15 months agoAdd path handling for real now
Dominik Kaiser [Mon, 21 Oct 2024 12:32:36 +0000 (14:32 +0200)]
Add path handling for real now

15 months agoAdd path handling
Dominik Kaiser [Thu, 17 Oct 2024 15:19:48 +0000 (17:19 +0200)]
Add path handling

15 months agoyes
Dominik Kaiser [Thu, 17 Oct 2024 14:06:53 +0000 (16:06 +0200)]
yes

15 months agoMerge branch 'interpreter' of https://github.com/dpu-kaiser/minishell into echo-builtint
Christopher Uhlig [Thu, 17 Oct 2024 13:52:19 +0000 (15:52 +0200)]
Merge branch 'interpreter' of https://github.com/dpu-kaiser/minishell into echo-builtint

15 months agofixed *tmp and added libft in env header
Christopher Uhlig [Thu, 17 Oct 2024 13:48:50 +0000 (15:48 +0200)]
fixed *tmp and added libft in env header

15 months agoMerge changes from main into interpreter
Dominik Kaiser [Thu, 17 Oct 2024 13:42:31 +0000 (15:42 +0200)]
Merge changes from main into interpreter

15 months agoEnv (#23)
cuhlig [Thu, 17 Oct 2024 13:42:11 +0000 (15:42 +0200)]
Env (#23)

* Add data structure and prototypes for env

* added env linked lis c file

* fixed normitte and fixed return issue

* changed prototypes in header file

---------

Co-authored-by: Dominik Kaiser <dkaiser@2-F-4.42heilbronn.de>
Co-authored-by: Christopher Uhlig <chuhlig@1-C-5.42heilbronn.de>
15 months agochanged prototypes in header file
Christopher Uhlig [Thu, 17 Oct 2024 13:38:15 +0000 (15:38 +0200)]
changed prototypes in header file

15 months agoMerge branch 'env' of https://github.com/dpu-kaiser/minishell into env
Christopher Uhlig [Thu, 17 Oct 2024 13:32:43 +0000 (15:32 +0200)]
Merge branch 'env' of https://github.com/dpu-kaiser/minishell into env

15 months agofixed normitte and fixed return issue
Christopher Uhlig [Thu, 17 Oct 2024 13:32:02 +0000 (15:32 +0200)]
fixed normitte and fixed return issue

15 months agoMerge branch 'main' into env
cuhlig [Thu, 17 Oct 2024 12:34:33 +0000 (14:34 +0200)]
Merge branch 'main' into env

15 months agoadded env linked lis c file
Christopher Uhlig [Thu, 17 Oct 2024 12:32:28 +0000 (14:32 +0200)]
added env linked lis c file

15 months agoremoved env stuf to move it into env branch
Christopher Uhlig [Thu, 17 Oct 2024 12:30:23 +0000 (14:30 +0200)]
removed env stuf to move it into env branch

15 months agoremoved merch conflict
Christopher Uhlig [Thu, 17 Oct 2024 12:22:47 +0000 (14:22 +0200)]
removed merch conflict

15 months agoMerge changes from main into interpreter
Dominik Kaiser [Thu, 17 Oct 2024 12:02:28 +0000 (14:02 +0200)]
Merge changes from main into interpreter

15 months agoMerge parser into main
Dominik Kaiser [Thu, 17 Oct 2024 12:01:47 +0000 (14:01 +0200)]
Merge parser into main

Yippie!

16 months agoBanish the cosmic horror
Dominik Kaiser [Tue, 17 Sep 2024 17:49:29 +0000 (19:49 +0200)]
Banish the cosmic horror

16 months agoMake norminette happy and fry my brain.
Dominik Kaiser [Tue, 17 Sep 2024 17:28:37 +0000 (19:28 +0200)]
Make norminette happy and fry my brain.

I just summoned some cosmic horror, but at least
norminette doesn't complain anymore.

16 months agoFix error message printing
Dominik Kaiser [Tue, 17 Sep 2024 17:25:13 +0000 (19:25 +0200)]
Fix error message printing

16 months agoFix redir ignored at end
Dominik Kaiser [Tue, 17 Sep 2024 15:25:28 +0000 (17:25 +0200)]
Fix redir ignored at end

16 months agoadded remove for env list
Christopher Uhlig [Tue, 17 Sep 2024 14:34:57 +0000 (16:34 +0200)]
added remove for env list

16 months agoAdd error messages
Dominik Kaiser [Tue, 17 Sep 2024 13:09:24 +0000 (15:09 +0200)]
Add error messages

16 months agoFix pipe parsing error
Dominik Kaiser [Tue, 17 Sep 2024 12:39:04 +0000 (14:39 +0200)]
Fix pipe parsing error

16 months agoupdate for unset export and cd
Christopher Uhlig [Fri, 13 Sep 2024 19:46:52 +0000 (21:46 +0200)]
update for unset export and cd

16 months agoupdate builtins for env structure
Christopher Uhlig [Fri, 13 Sep 2024 19:21:09 +0000 (21:21 +0200)]
update builtins for env structure

16 months agoFix norme issues for env.h and repl.c
Dominik Kaiser [Fri, 13 Sep 2024 14:27:13 +0000 (16:27 +0200)]
Fix norme issues for env.h and repl.c

TODO: Fix for tokenizer.c as well. This was probably already solved in
another branch though.

16 months agoFix SEGV on invalid redirection
Dominik Kaiser [Fri, 13 Sep 2024 14:23:04 +0000 (16:23 +0200)]
Fix SEGV on invalid redirection

17 months agoupdate for builtins and now 2 envlist
Christopher Uhlig [Wed, 4 Sep 2024 15:53:41 +0000 (17:53 +0200)]
update for builtins and now 2 envlist

17 months agoHandle empty input
Dominik Kaiser [Thu, 29 Aug 2024 14:44:56 +0000 (16:44 +0200)]
Handle empty input

17 months agoadded other token append to remove the error that its not at the start
Christopher Uhlig [Thu, 29 Aug 2024 13:57:14 +0000 (15:57 +0200)]
added other token append to remove the error that its not at the start

17 months agojust date
Christopher Uhlig [Thu, 29 Aug 2024 13:56:23 +0000 (15:56 +0200)]
just date

17 months agotemporary here get envlst
Christopher Uhlig [Thu, 29 Aug 2024 13:55:46 +0000 (15:55 +0200)]
temporary here get envlst

17 months ago Update repl
Dominik Kaiser [Thu, 29 Aug 2024 13:31:07 +0000 (15:31 +0200)]
 Update repl

17 months agoMerge branch 'main' into parser
Dominik Kaiser [Thu, 29 Aug 2024 13:27:07 +0000 (15:27 +0200)]
Merge branch 'main' into parser

17 months ago2nd push with unset export exit and cd
Christopher Uhlig [Sun, 18 Aug 2024 02:30:20 +0000 (04:30 +0200)]
2nd push with unset export exit and cd

17 months agofixed |> fixed norm added new function
Christopher Uhlig [Sun, 11 Aug 2024 13:15:06 +0000 (15:15 +0200)]
fixed |> fixed norm added new function

17 months agoRemove assigns
Dominik Kaiser [Sun, 11 Aug 2024 10:27:02 +0000 (12:27 +0200)]
Remove assigns

I found out that there's a difference between shell variables and env
variables.
We don't have to implement shell variables, so I removed all code that
handles them.

17 months agoFix parser bugs
Dominik Kaiser [Sun, 11 Aug 2024 10:15:40 +0000 (12:15 +0200)]
Fix parser bugs

17 months agoMerge changes from main into parser branch
Dominik Kaiser [Sun, 11 Aug 2024 09:18:26 +0000 (11:18 +0200)]
Merge changes from main into parser branch

17 months agofirst ideas of my understanding
Christopher Uhlig [Fri, 9 Aug 2024 17:08:18 +0000 (19:08 +0200)]
first ideas of my understanding

17 months agoMerge pull request #12 from dpu-kaiser/tokenizer
cuhlig [Fri, 9 Aug 2024 14:26:37 +0000 (16:26 +0200)]
Merge pull request #12 from dpu-kaiser/tokenizer

Tokenizer

17 months agoremove out.txt
Christopher Uhlig [Fri, 9 Aug 2024 14:19:16 +0000 (16:19 +0200)]
remove out.txt

17 months agoremoved normitte errors in tokenizer
Christopher Uhlig [Fri, 9 Aug 2024 13:40:42 +0000 (15:40 +0200)]
removed normitte errors in tokenizer

17 months agofixed norm errors that i saw
Christopher Uhlig [Fri, 9 Aug 2024 13:28:03 +0000 (15:28 +0200)]
fixed norm errors that i saw

17 months agotest version with a bunch of fixes
Christopher Uhlig [Fri, 9 Aug 2024 11:00:47 +0000 (13:00 +0200)]
test version with a bunch of fixes

17 months agofixed the -1 letter tstill dont try \\ xd and for the case < in.txt cat -e > out...
Christopher Uhlig [Fri, 9 Aug 2024 10:40:16 +0000 (12:40 +0200)]
fixed the -1 letter tstill dont try \\ xd and for the case < in.txt cat -e > out.txt | grep test im working on it >D

17 months agoshorten version with bugg
Christopher Uhlig [Fri, 9 Aug 2024 09:45:22 +0000 (11:45 +0200)]
shorten version with bugg

17 months agoold version improved for edgecase and removed leaks
Christopher Uhlig [Thu, 8 Aug 2024 16:53:32 +0000 (18:53 +0200)]
old version improved for edgecase and removed leaks

17 months agoMerge changes from main into interpreter
Dominik Kaiser [Thu, 8 Aug 2024 16:17:33 +0000 (18:17 +0200)]
Merge changes from main into interpreter

17 months agoAdd data structure and prototypes for env
Dominik Kaiser [Thu, 8 Aug 2024 15:10:25 +0000 (17:10 +0200)]
Add data structure and prototypes for env

17 months agoAdd data structure and prototypes for env
Dominik Kaiser [Thu, 8 Aug 2024 15:10:25 +0000 (17:10 +0200)]
Add data structure and prototypes for env

17 months agotried without manz changes to improve it pls test it also doueble and single quote...
Christopher Uhlig [Mon, 5 Aug 2024 19:47:31 +0000 (21:47 +0200)]
tried without manz changes to improve it pls test it also doueble and single quote again

18 months agoadded in header as well
Christopher Uhlig [Mon, 5 Aug 2024 11:55:36 +0000 (13:55 +0200)]
added in header as well

18 months agoadded strncpy in make and removed -g out of main makefile
Christopher Uhlig [Mon, 5 Aug 2024 11:53:50 +0000 (13:53 +0200)]
added strncpy in make and removed -g out of main makefile

18 months agofixed norm stuff
Christopher Uhlig [Mon, 5 Aug 2024 11:47:00 +0000 (13:47 +0200)]
fixed norm stuff

18 months agomade the if debug around print token
Christopher Uhlig [Mon, 5 Aug 2024 11:46:24 +0000 (13:46 +0200)]
made the if debug around print token

18 months agoupdate for sanityzer in condiprint
Christopher Uhlig [Mon, 5 Aug 2024 11:44:04 +0000 (13:44 +0200)]
update for sanityzer in condiprint

18 months agoremove strncpy out of tokenizer f
Christopher Uhlig [Mon, 5 Aug 2024 11:43:07 +0000 (13:43 +0200)]
remove strncpy out of tokenizer f

18 months agoadded strncpy in lib
Christopher Uhlig [Mon, 5 Aug 2024 11:42:32 +0000 (13:42 +0200)]
added strncpy in lib

18 months agoCreate basic structure for ast evaluation
Dominik Kaiser [Mon, 5 Aug 2024 11:35:51 +0000 (13:35 +0200)]
Create basic structure for ast evaluation

18 months agoremoved notes out of tokenizer.c
Christopher Uhlig [Mon, 5 Aug 2024 11:25:33 +0000 (13:25 +0200)]
removed notes out of tokenizer.c

18 months agoremoved debugs functions out of header
Christopher Uhlig [Mon, 5 Aug 2024 11:24:32 +0000 (13:24 +0200)]
removed debugs functions out of header

18 months agoremoved .vscode
Christopher Uhlig [Mon, 5 Aug 2024 11:22:54 +0000 (13:22 +0200)]
removed .vscode

18 months agoupdated the date in header
Christopher Uhlig [Mon, 5 Aug 2024 11:21:45 +0000 (13:21 +0200)]
updated the date in header

18 months agoadded second version at some point
Christopher Uhlig [Mon, 5 Aug 2024 11:21:18 +0000 (13:21 +0200)]
added second version at some point

18 months agoadded -g flagg for compile
Christopher Uhlig [Mon, 5 Aug 2024 11:20:11 +0000 (13:20 +0200)]
added -g flagg for compile

18 months agomade it norm comform exept one funkction to much
Christopher Uhlig [Sun, 4 Aug 2024 12:36:51 +0000 (14:36 +0200)]
made it norm comform exept one funkction to much

18 months agoupdated token header but still norm erro idk
Christopher Uhlig [Sun, 4 Aug 2024 12:36:08 +0000 (14:36 +0200)]
updated token header but still norm erro idk

18 months agoRefactor parser
Dominik Kaiser [Fri, 2 Aug 2024 13:29:00 +0000 (15:29 +0200)]
Refactor parser

* Fix norme for free_node.c

* Uglify parser.c

* Merge parser updates into refactor-parser

* Outsource collect_assigns and collect_redirs

* Make parse_cmd.c norme conform

* Make free_tokens() norme conform

* Make collect_assigns.c norme conform

* Some refactoring of collect_redirs

* Refactor collect_redirs

18 months agoAdd function free_tokens()
Dominik Kaiser [Fri, 2 Aug 2024 12:14:42 +0000 (14:14 +0200)]
Add function free_tokens()

18 months agoFix some issues in parse_cmd.c
Dominik Kaiser [Fri, 2 Aug 2024 11:24:48 +0000 (13:24 +0200)]
Fix some issues in parse_cmd.c

18 months agoFix print_ast
Dominik Kaiser [Fri, 2 Aug 2024 11:23:49 +0000 (13:23 +0200)]
Fix print_ast

18 months agoAdd print_ast function
Dominik Kaiser [Mon, 22 Jul 2024 14:33:08 +0000 (16:33 +0200)]
Add print_ast function

18 months agoFix errors and make the parser work
Dominik Kaiser [Mon, 22 Jul 2024 13:07:59 +0000 (15:07 +0200)]
Fix errors and make the parser work

18 months agoadded in repl.c tokenizer + visual and free
Christopher Uhlig [Mon, 22 Jul 2024 12:39:25 +0000 (14:39 +0200)]
added in repl.c tokenizer + visual and free

18 months agosome testcases and changes
Christopher Uhlig [Mon, 22 Jul 2024 12:33:24 +0000 (14:33 +0200)]
some testcases and changes

18 months agodebugger minishell
Christopher Uhlig [Mon, 22 Jul 2024 12:32:22 +0000 (14:32 +0200)]
debugger minishell

18 months agoAdding working parsing
Dominik Kaiser [Tue, 9 Jul 2024 17:23:17 +0000 (19:23 +0200)]
Adding working parsing

TODO: Refactoring

18 months agoRemove redundant funcs and add parse funcs to header and Makefile
Dominik Kaiser [Tue, 9 Jul 2024 10:56:09 +0000 (12:56 +0200)]
Remove redundant funcs and add parse funcs to header and Makefile

18 months agoGet colllect_args() to work properly
Dominik Kaiser [Tue, 9 Jul 2024 10:54:35 +0000 (12:54 +0200)]
Get colllect_args() to work properly

18 months agoAdd most of parse_cmd
Dominik Kaiser [Mon, 8 Jul 2024 15:30:58 +0000 (17:30 +0200)]
Add most of parse_cmd

18 months agoAdd most of the parser
Dominik Kaiser [Mon, 8 Jul 2024 14:35:30 +0000 (16:35 +0200)]
Add most of the parser