Skip to content

A small shell based on Bash. School project by vkuusela and myself as part of the Hive Helsinki curriculum.

Notifications You must be signed in to change notification settings

EyzeCOLD/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screenshot

minishell

A small shell based on bash. Written in C as a part of the Hive Helsinki curriculum. A group project by @v-kuu and myself.

Basic features:

  • execution
  • redirection
  • piping
  • heredocs
  • built-in commands
    • cd, echo, env, export & unset, pwd and of course exit

Installation

Clone the repository, run make in the repositorys root. To build you need libreadline-dev. If you don't have readline you can install it with sudo apt install libreadline-dev. Only Linux is supported, though you might be able to build it on macOS as well.

Usage

Simply executing minishell to use the interactive mode.

$ ./bin/minishell

You can also pipe or redirect commands to it.

$ echo "env > env.txt" | ./bin/minishell

You can do many of the things you could do in Bash, except the things you cant. ;-)

About

A small shell based on Bash. School project by vkuusela and myself as part of the Hive Helsinki curriculum.

Topics

Resources

Stars

Watchers

Forks