Skip to content

AuroraSloan/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minishell

A simple shell.

ms

This program was developed by Yuta-Fujimoto and AuroraSloan

Features

Simple commands

  • Search and launch any executable in $PATH

Builtin commands

Command Options / Arguments
echo -n
cd relitvie or absolute path
pwd n/a
export no options
unset no options
env n/a
exit no options

Expansion

  • ' inhibits all interpretions of a sequence of characters
  • " inhibits all interpretation of a sequence of characters except for $
  • Environment values expand to their values
  • $? expands to the most recently executed foreground pipeline

Redirection

  • < redirects input
  • > redirects output
  • << reads input from the current source until a linie containing only the delimiter is seen
  • >> redirects output with append mode

Piping

  • The output of each command in the pipeline is connected via a pipe to the input of the next command

Signals

  • Ctrl-c prints a new prompt on a new line
  • Ctrl-d exits the shell
  • Ctrl-\ does nothing

Installation

git clone https://github.com/AuroraSloan/minishell.git

Usage

First, create the executable with make
make - compiles the minishell executable
make clean - removes all object files
make fclean - removes all object files and the executable
make re - removes all object files and the executable before recompiling the program

In order to run the program, simply run the executable.

./minishell

To exit the program, you can use the builtin command exit or press Ctrl-d.