A shell with minimal functionality coded in C
This is the first of three projects where we have to implement a shell in C. The reference is the tcsh shell. See https://github.com/tcsh-org/tcsh
First compile with the Makefile
makeThen launch the shell by typing
./myshIt also supports receiving commands with a pipe. For example :
echo "ls" | ./myshwill work.
To exit the shell, use the command exit or Ctrl+D
- Run commands with basic arguments (e.g
/bin/ls -l -a) - Run commands with path in the environment variable "PATH" (e.g
ls) - Builtins
cd,exit,env,setenvandunsetenv - Exit with Ctrl+D
- Terminate program with Ctrl+C