
Shell Copy
A copy of Linux Shell process that allows interacting with a computer in a more detailed manner through terminal. The project supports all the commands that a regular bash or shell would, as well as provides support for redirections, multicommand lines of input. Also, the project adds a support for a custom redirection command called 'prepend redirection'. It allows appending the output to the start of the file.
Tech Stack
Linux
C
Overview
Variable Size Arrays
I used C to create a software that makes system calls to the operating system to carry out most basic instructions that regular shell would. My implementation allowed for the parameterization of the commands using the variable size arrays that were used for parsing user input.
Custom Redirection
The implementation supported a custom redirection of output called prepending redirection ('>+'). It allowed users to append the output of a command to a start of a file rather than the end of it. This allowed me to learn how to create and delete temporary files with unique names to store data previously stored in a redirection file. That was necessary, since C does not allow direct support of prepend writes.
Checkout
WDS
Checkout
AYO