A simple Unix-like shell implementation in C.
This project is a minimalistic shell implementation designed to demonstrate fundamental shell functionalities. It focuses on core features such as:
- Executing commands
- Handling command-line arguments
- Interacting with the environment
- Compile the code using a C compiler like GCC:
gcc -o hsh *.c
- Run the shell:
./hsh
- Type commands as you would in a standard Unix shell.
- Reads user input from the command line.
- Parses commands and arguments using strtok.
- Executes commands using fork, execve, and waitpid.
- Handles errors with appropriate messages.
- Searches for executables in the PATH environment variable.
Feel free to customize the README according to the specific details of your project and the preferences of your audience.