https://github.com/maryehb/simple_shell
https://github.com/maryehb/simple_shell
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/maryehb/simple_shell
- Owner: MaryEhb
- Created: 2023-09-12T11:47:54.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T13:19:25.000Z (almost 3 years ago)
- Last Synced: 2025-02-28T08:00:15.988Z (over 1 year ago)
- Language: Shell
- Size: 144 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Shell
This is a basic Unix shell implemented in C, designed for simple command execution. It follows strict criteria outlined below:
## Features
- **Command Execution:** The shell accepts one-word commands with optional arguments.
- **Prompt Display:** A prompt is displayed, waiting for the user to enter a command. After execution, the prompt is displayed again.
- **Error Handling:** If an executable cannot be found, an error message is displayed, and the prompt reappears.
- **End of File Handling:** The shell gracefully handles the "end of file" condition (Ctrl+D).
- **Built-in Commands:**
- `exit`: Allows you to exit the shell.
- `env`: Displays the current environment.
## Getting Started
1. **Clone the Repository:**
```bash
git clone https://github.com/yourusername/simple-unix-shell.git
```
2. **Compile the Code:**
```bash
cd simple-unix-shell
gcc shell.c -o shell
```
3. **Run the Shell:**
```bash
./shell
```
## Contributors
- [Mohamed Amr](https://github.com/MohamedAmrF)
- [Mariem Ehab](https://github.com/MaryEhb)
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Acknowledgments
- This project was created to demonstrate a minimalistic Unix shell in C.
- No advanced features like semicolons, pipes, or redirections are supported, keeping the implementation simple and straightforward.