A simple but useful implementation of dynamically growable arrays, similar to C++'s std::vector
.
Just one convenience function that executes getcwd
.
Handling of shell prompt and history, based on GNU Readline.
Parser of shell commands, including handling for piping (|
), redirection (>/>>
), single and double quotes, and whitespaces.
Implementation of built-in commands:
info
pwd
cd
exit
mygrep
Main loop, command spawning, piping, and redirection.