Built a basic shell using C, with added functionalities(script support, pipes of any length etc.).
Download onlineshell.c file, compile with gcc on a unix based terminal and run the ".o" file.
Supported Commands/Features are listed below, alongwith the test results on a Linux Terminal.
3. echo,ls with all options
4. History related commands: history,!,!!,!5,!-7 etc.
5. Inter-command logic : OR(||),AND(&&),AS WELL AS(;)
6. rmdir and mkdir alongwith -m and -p options
7. piping with any length of pipes. Example :
8. Freely changing prompts :
9. Running scripts. In the Example below, the file "shellfile" has a script of 3 lines(top part of image), which can be run
10. Supports Wildcard character "*" in all places! For example, in 「ls -l *.c」 etc. Another Example below :