https://github.com/zainabdnaya/minishell_42
The objective of this project is for you to create a simple shell.
https://github.com/zainabdnaya/minishell_42
42projects c execution minishell parsing sh
Last synced: 2 months ago
JSON representation
The objective of this project is for you to create a simple shell.
- Host: GitHub
- URL: https://github.com/zainabdnaya/minishell_42
- Owner: zainabdnaya
- Created: 2021-04-02T15:09:53.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-02T15:41:20.000Z (about 4 years ago)
- Last Synced: 2025-04-12T06:50:00.463Z (2 months ago)
- Topics: 42projects, c, execution, minishell, parsing, sh
- Language: C
- Homepage:
- Size: 1.23 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minishell_42
## What is a shell? :thinking: ##
Basically in an operating system there are these two elements:
* The kernel (= kernel): which performs the fundamental functions of
the operating system such as memory management, processes, files ...
* The shell: At its base, a shell is simply a macro processor that executes commands.
-The term macro processor means functionality where text and symbols are expanded to create larger expressions.
-A Unix shell is both a command interpreter and a programming language.## This Project Majerly Include :open_file_folder: ##
**Parsing**
2. The separations
1. Pipes
3. Command and arguments
4. Protections
5. The <,>, >> redirects
6. Environment variables
**The execution**1. Redirects
2. Env, export, unset
3. Exit and $?
4. Pipes / signals / process links## Best Ressources ##
-https://medium.com/@nickolasteixeira/want-to-build-a-simple-shell-heres-how-you-do-it-75890647bae8
-https://medium.com/dev-genius/lets-build-a-linux-shell-part-i-954c95911501
-https://medium.com/better-programming/how-bash-works-8424becc12f3
-https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
-https://man7.org/linux/man-pages/dir_all_by_section.html
-https://unix.stackexchange.com/questions/159513/what-are-the-shells-control-and-redirection-operators
-https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html
-https://www.geeksforgeeks.org/pipe-system-call/?ref=rp
-https://www.geeksforgeeks.org/wait-system-call-c/?ref=rp
-https://www.geeksforgeeks.org/fork-system-call/?ref=rp
-http://www-igm.univ-mlv.fr/~dr/NCSPDF/chapitre11.pdf
-https://www.geeksforgeeks.org/making-linux-shell-c/
-https://www.quora.com/What-is-the-3rd-parameter-in-the-main-function-char-envp#:~:text=The%20non%2Dportable%2Dbut%2D,As%20always%2C%20I%20recommend%20experimenting
-https://chrtophe.developpez.com/tutoriels/minisysteme/#L11
-https://stackoverflow.com/questions/6697753/difference-between-single-and-double-quotes-in-bash
-https://brennan.io/2015/01/16/write-a-shell-in-c/
-https://www.youtube.com/watch?v=5BE9qM79fgM
-https://sites.cs.ucsb.edu/~manish/discussion/week2.pdf
-https://www.geeksforgeeks.org/chdir-in-c-language-with-examples/ Important
-https://theswissbay.ch/pdf/Gentoomen%20Library/Programming/Bash/O%27Reilly%20bash%20CookBook.pdf## To Test ##
Run : make && ./minshell