Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ndevu12/simple_shell
https://github.com/ndevu12/simple_shell
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ndevu12/simple_shell
- Owner: Ndevu12
- Created: 2023-11-11T17:44:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-18T07:43:37.000Z (almost 1 year ago)
- Last Synced: 2023-11-18T12:34:52.224Z (almost 1 year ago)
- Language: C
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: history.c
Awesome Lists containing this project
README
# simple_shell
# Simple shell project
# This is a team of two project: NIYOKWIZERWA Jean Paul Elisa(Ndevu) & Jackline NYANGANJOKI
We did this while we are about to finish first spring in ALX SE program
# This Simple shell will mimic some shell functionalities
# Here are what it will be doing:
1. Display a prompt and wait for the user to type a command. A command line always ends with a new line.
2. The prompt is displayed again each time a command has been executed.
3. The command lines are simple, no semicolons, no pipes, no redirections or any other advanced features.
4. The command lines are made only of one word. No arguments will be passed to programs.
5. If an executable cannot be found, print an error message and display the prompt again.
Handle errors.
6. You have to handle the “end of file” condition (Ctrl+D)
7. Handle command lines with arguments
8. Simple shell 0.2 +Handle the PATH
fork must not be called if the command doesn’t exist
9. Simple shell 0.3 +Implement the exit built-in, that exits the shell
Usage: exit
You don’t have to handle any argument to the built-in exit10. Simple shell 0.4 +
Implement the env built-in, that prints the current environment
11. Simple shell 0.1 +Write your own getline function
Use a buffer to read many chars at once and call the least possible the read system call
You will need to use static variables
You are not allowed to use getline
12. handle arguments for the built-in exit