An open API service indexing awesome lists of open source software.

https://github.com/exclud/simple_shell

A shell written in C
https://github.com/exclud/simple_shell

alx-africa c shell

Last synced: 3 months ago
JSON representation

A shell written in C

Awesome Lists containing this project

README

          

# Simple Shell

This repository included a simple shell written in C.

## Deployment

To deploy this project run

```bash
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)