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
- Host: GitHub
- URL: https://github.com/exclud/simple_shell
- Owner: exclud
- Created: 2023-05-12T10:02:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-22T19:44:21.000Z (over 2 years ago)
- Last Synced: 2025-07-02T01:36:59.389Z (7 months ago)
- Topics: alx-africa, c, shell
- Language: C
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Authors: AUTHORS
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)