Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Minishell is a simple shell created as part of my 1337 (42 Network) studies. It supports basic command execution, pipes, redirections, environment variables, and built-in commands like cd, pwd, echo, and more. It also handles signals (Ctrl-C, Ctrl-D) and offers a history feature.

NotificationsYou must be signed in to change notification settings

amine-za/Minishell-1337

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minishell is a simple shell created as part of my 1337 (42 Network) studies. It supports basic command execution, pipes, redirections, environment variables, and built-in commands likecd,pwd,echo, and more. It also handles signals (Ctrl-C,Ctrl-D) and offers a history feature.

Features

  • Command execution based onPATH or relative/absolute paths.
  • History functionality for command recall.
  • Input/output redirections (<,>,<<,>>).
  • Pipe support (| for piping output between commands).
  • Environment variable handling ($VAR expansion).
  • Special handling for$? (exit status of the last command).
  • Signal handling forCtrl-C,Ctrl-D, andCtrl-\.
  • Built-in commands:echo,cd,pwd,export,unset,env,exit.
  • Supports single and double quotes for escaping special characters.

How to Use

  1. Clone the repository.
  2. Runmake to build the shell.
  3. Execute the program with./minishell.

This project adheres to strict memory management rules, ensuring no leaks in user-defined code, and follows the 42 Norm.

About

Minishell is a simple shell created as part of my 1337 (42 Network) studies. It supports basic command execution, pipes, redirections, environment variables, and built-in commands like cd, pwd, echo, and more. It also handles signals (Ctrl-C, Ctrl-D) and offers a history feature.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C98.1%
  • Makefile1.9%

[8]ページ先頭

©2009-2025 Movatter.jp