Skip to content

42 Project to create a real shell prompt to execute multiple command lines ,all in C language, diving into the depths of binary trees, edge cases of parsing, and the complexity of execution and processes!

Notifications You must be signed in to change notification settings

aelsayed1337/MINISHELL

Repository files navigation

----------------------------------------------------------#

read this !!!!!!!!!!!!!!

SEGV

ila mssahna l env : MAZAL MAKHDMNAHACH

I need to add a fct that switches the places of strings in an array

wa naaaaaaari treatement dial redirections 3ndna khaaaaaaaaaaari m3a ro7o waaaaaaaaa3 
we have a big problem  in redirection parsing unfortunately 
we still have a big prob in the pipeline

🔴🔴🔴🔴 PIPE_LINE 🔴🔴🔴🔴

⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛
⬛⬛⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛⬛⬛
⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛
⬛⬛🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛


⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛🟥🟥🟥⬛⬛🟥⬛🟥🟥🟥⬛⬛🟥🟥🟥🟥⬛🟥⬛⬛⬛⬛🟥⬛🟥🟥⬛⬛🟥⬛🟥🟥🟥🟥⬛⬛⬛⬛
⬛⬛⬛⬛🟥⬛⬛🟥⬛⬛⬛🟥⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛⬛⬛⬛🟥🟥🟥⬛🟥⬛🟥⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛🟥⬛⬛🟥⬛🟥⬛🟥⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛⬛🟥⬛🟥⬛🟥⬛🟥⬛🟥⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛🟥🟥🟥⬛⬛🟥⬛🟥🟥🟥⬛⬛🟥🟥🟥🟥⬛🟥⬛⬛⬛⬛🟥⬛🟥⬛🟥⬛🟥⬛🟥🟥🟥🟥⬛⬛⬛⬛
⬛⬛⬛⬛🟥⬛⬛⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛⬛🟥⬛🟥⬛🟥⬛🟥⬛🟥⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛🟥⬛⬛⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛⬛🟥⬛🟥⬛🟥🟥🟥⬛🟥⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛🟥⬛⬛⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥🟥🟥🟥⬛🟥🟥🟥🟥⬛🟥⬛🟥⬛⬛🟥🟥⬛🟥🟥🟥🟥⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛


⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
⬛🟥🟥🟥⬛⬛🟥🟥🟥🟥⬛🟥🟥🟥⬛⬛🟥⬛🟥🟥🟥⬛⬛🟥🟥🟥🟥⬛🟥🟥🟥🟥⬛🟥⬛🟥🟥🟥🟥🟥⬛🟥⬛⬛🟥🟥🟥⬛⬛🟥🟥⬛⬛🟥⬛
⬛🟥⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛🟥⬛⬛⬛🟥⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛⬛⬛⬛⬛⬛🟥⬛⬛⬛⬛⬛🟥⬛⬛⬛🟥⬛🟥🟥🟥⬛🟥⬛
⬛🟥⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛🟥⬛🟥⬛🟥⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛🟥⬛⬛⬛🟥⬛🟥⬛⬛⬛🟥⬛🟥⬛🟥⬛🟥⬛
⬛🟥🟥🟥⬛⬛🟥🟥🟥🟥⬛🟥⬛⬛🟥⬛🟥⬛🟥🟥🟥⬛⬛🟥🟥🟥🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛🟥⬛⬛⬛🟥⬛🟥⬛⬛⬛🟥⬛🟥⬛🟥⬛🟥⬛
⬛🟥⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛🟥⬛🟥⬛🟥⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛🟥⬛⬛⬛🟥⬛🟥⬛⬛⬛🟥⬛🟥⬛🟥⬛🟥⬛
⬛🟥⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛🟥⬛🟥⬛🟥⬛⬛🟥⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛⬛🟥⬛⬛⬛🟥⬛⬛⬛🟥⬛🟥⬛⬛⬛🟥⬛🟥⬛🟥🟥🟥⬛
⬛🟥⬛⬛🟥⬛🟥🟥🟥🟥⬛🟥🟥🟥⬛⬛🟥⬛🟥⬛⬛🟥⬛🟥🟥🟥🟥⬛🟥🟥🟥🟥⬛🟥⬛⬛⬛🟥⬛⬛⬛🟥⬛⬛🟥🟥🟥⬛⬛🟥⬛⬛🟥🟥⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛


i guess i get an Idea about how can we handle redirection
we gonna use you strtok to get the tokens '<' '<<' '>>' '>' and we gonna have the list that containe something like this :
[cmd, <, >, <<, >>, args] or what ever ...
so then we gonna work for its logic, syntax ...


About

42 Project to create a real shell prompt to execute multiple command lines ,all in C language, diving into the depths of binary trees, edge cases of parsing, and the complexity of execution and processes!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published