Skip to content

exclud/simple_shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Shell

This repository included a simple shell written in C.

Deployment

To deploy this project run

gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh

./hsh 

Features

  • Display a prompt and wait for the user to type a command. A command line always ends with a new line. The prompt is displayed again each time a command has been executed.
  • The command lines are simple, no semicolons, no pipes, no redirections or any other advanced features. The command lines are made only of one word. No arguments will be passed to programs.
  • If an executable cannot be found, print an error message and display the prompt again. Handle errors.
  • You have to handle the “end of file” condition (Ctrl+D)

Releases

No releases published

Packages

No packages published

Languages