Code Monkey home page Code Monkey logo

42_minishell's Introduction

Minishell

As beautiful as a shell

Minishell is a project aimed at creating a simple shell, similar to Bash. This project will enhance your understanding of processes and file descriptors in Unix-like operating systems.

It is one off the dauting projects from the common core also called as MINIHELL.

I developed this project together with my dear friend https://github.com/mendes-jv and it was a big challenge, but we handle it very well!

Feel free to contribute, report issues, or suggest improvements to make this project better!

Version: 1.0.0

How to use it

git clone https://github.com/pedromelocf/42_minishell zapshell
cd zapshell
make
./minishell

Contents

I. Introduction

The existence of shells is fundamental to the field of computing. They provide a way for users to interact with computers through command lines rather than low-level hardware manipulations. Minishell allows you to step back in time and tackle the challenges faced before modern GUI environments, providing a hands-on experience with shell programming.

II. Mandatory Part

  • Program Name: minishell

  • Turn In Files: Makefile, *.h, *.c

  • Arguments:

    • Use external functions like readline, printf, malloc, etc.
  • Libft Authorized: Yes

  • Description: Implement a shell that:

    • Displays a prompt when waiting for a command.
    • Maintains a command history.
    • Searches and executes commands based on the PATH variable or relative/absolute paths.
    • Avoids using more than one global variable for signal handling.
    • Implements quote handling for both single (') and double (") quotes.
    • Implements input/output redirection and piping.
    • Expands environment variables and the exit status of the last command.
    • Handles control signals (ctrl-C, ctrl-D, ctrl-\) appropriately.
  • Builtins to Implement:

    • echo (with -n)
    • cd (with paths)
    • pwd
    • export
    • unset
    • env
    • exit

III. Bonus Part

To receive bonus credit, your implementation must include:

  • Logical operators (&&, ||) with proper priority handling.
  • Support for wildcard (*) expansion in the current directory.

Bonus evaluation is contingent on the mandatory part being perfect.

Grade

42_minishell's People

Contributors

pedromelocf avatar mendes-jv 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.