Giter Site home page Giter Site logo

toowan0x1 / minishell Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 6.63 MB

Minishell is a simplified Unix shell project focused on implementing basic command-line functionalities such as executing commands, managing processes, and handling input/output. It serves as an educational tool for students to gain experience with system programming, command parsing, and shell operations.

Makefile 1.05% C 63.26% Shell 6.83% M4 0.51% Roff 3.66% Perl 6.89% TeX 17.63% C++ 0.17%

minishell's Introduction

Minishell

Minishell is a project developed as part of the 42 curriculum. It aims to create a simplified shell that can interpret and execute basic commands, handle environment variables, and implement some built-in functionalities.

Installation To install and run the Minishell project, follow these steps:

Clone the repository: 'git clone https://github.com/0xtoowan/minishell.git'

Navigate to the project directory: 'cd minishell'

Compile the source code: 'make'

Run Minishell: './minishell'

Usage Once you have started Minishell, you can enter commands and execute them. The shell supports various features and built-in commands, including but not limited to:

Running external commands by specifying the command's name. Handling environment variables using the syntax $VAR_NAME. Redirecting input/output using the < and > symbols. Implementing pipes using the | symbol. Managing the exit status of previously executed commands with the $? variable. Implementing built-in commands like echo, cd, env, export, unset, exit, etc. Here's an example of using Minishell:

shell Copy code $ ./minishell minishell$ echo Hello, World! Hello, World! minishell$ ls -l total 8 -rwxr-xr-x 1 user staff 16376 May 20 12:00 minishell minishell$ cd .. minishell$ pwd /Users/user minishell$ exit $ Contributing Contributions to the Minishell project are welcome. If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.


The Project consist of two parts :

Parsing

    1. readline
    2. pipes
    3. Command and arguments
    4. Protections
    5. The <,>, >> redirects
    6. Environment variables
    7. The separations
    8. history

The execution

    1. Redirects
    2. Env, export, unset
    3. Exit and $?
    4. Pipes / signals / process links 

Contributing

oel-houm wbouwach
Executer Parser
  - 42 Intra profile: oel-houm   - 42 Intra profile: wbouwach
  - Github Profile: click here ➚   - Github Profile: click here ➚

minishell's People

Contributors

toowan0x1 avatar bwalidd avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.