psush: minimal command line shell built in C

Apr 25, 2023

I made this illustration in blender but never had a use for it until now


In my operating class, were given the opportunity (assigned) to write a fully functional shell program in C

cd - change directory

What it does

- Takes input from user
- Processes commands
- Pipe I/O between commands and redirect in and out of files
- Handle built in and external commands

Using external commands touch to create hello.txt and vim to edit the same file

How it works

- Parses input into data structure containing commands and parameters

- Allocates ragged array to store commands, parameters, and flags and pass them as argv[] to execvp() system call