oktosha / codam-minishell Goto Github PK
View Code? Open in Web Editor NEWMinishell project at Codam (School 42)
License: The Unlicense
Minishell project at Codam (School 42)
License: The Unlicense
The flow will run on merge to main:
Better exec:
Basic lex, expand and parse. We need to make the parsing be able to connect to exec.
Only tokens used: pipes and commands
Inside kotishell we use our own mini_free and mini_malloc.
Inside tests we use the standard free and malloc functions.
fix:
void l_tk_symbol_error(t_tk_so_far *so_far)
fix:
mini_putstr_fd(" \033[0;31m\x1B[1m-> Unsupported symbol\n", 2);
Lena added:
pipex, libft, Makefile, src, include folders
The goal of lex is to do enough work to prepare for the env vars expansion.
2.1 Mark quotes as important and non-important
2.2 Mark heredoc, pipe, redirect depending on the quotes
2.3 Mark variables ($WORD
and $?
) taking heredoc and quotes into account
Currently parsing splits /usr/bin/ls into separate words bases on the slash symbol.
Also, a dot is considered as an other symbol
Fix the merging of whitespaces to commands. Commands and their arguments should be stored in separate nodes.
Valgrind behaves weirdly probably due to unclosed pipes. Every forked child receives all the pipes of the parent via fork but interacts only with the 2 file descriptors passed to l_ex_fork. A good child must close all the pipes it doesn't use.
Originally posted by @Oktosha in #30 (comment)
\ /\
) ( ') - Meow
( / )
\(__)|
Add proper envp split into kotivar
Write a basic way to launch non-built-in commands:
This issue isn't about integrating signals or handling all the weird cases
We need:
--track-fds=yes
that is essential for debugging files and pipes but useless and annoying for parse steps)val ./ex_tests
instead of valgrind -s --leak-check=full ./ex_tests
(and I want to add this alias as a part of devcontainer settings so it works out of the box in all our newly created codespaces but stop me pls)I think that we should invest in better debug asap because it will speed us up. Debugging pointers in VSCode the way we tried it is a pain.
We defined the structs that will be needed by the exec part from the parsing part.
Re: Daria
Link: https://unlicense.org/
Split string by whitespace (into words)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.