demicuz / minishell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minishell

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.

Features

tbd

To-do

  • 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 in readline.
  • Expanding variables inside of double quotes
  • Builtins
  • $? for status of most recently executed pipeline (should be set through export builtin)
  • Non-tty mode (echo "ls" | ./minishell should run ls inside of minishell)

misc

  • Use STDERR for errors. We can't use fprintf, that sucks.
  • Correct error handling in general
  • Better naming

About


Languages

Language:C 97.6%Language:Makefile 2.4%