A project for School 21. Implements a small subset of Bash in C. Code style is ugly due to mandatory Norm. Yes, 25 lines per function. Yes, tabs. Yes, only while loops. And so on.
tbd
- Command execution
- Pipes
- Find commands in
PATH
- Redirects
- Heredocs (currently weird behavior with
cltr + D
) - Relative paths
- Signals (
ctrl + C
,ctrl + D
,ctrl + /
).ctrl + D
seems to be working out of the box inreadline
. - Expanding variables inside of double quotes
- Builtins
-
$?
for status of most recently executed pipeline (should be set throughexport
builtin) - Non-tty mode (
echo "ls" | ./minishell
should runls
inside ofminishell
)
misc
- Use STDERR for errors. We can't use
fprintf
, that sucks. - Correct error handling in general
- Better naming