- Built-in commands:
cd [path]
echo [string]
ls [-al] [dirs]
pinfo [pid]
pwd
repeat [n] [command]
- Foreground and Background processes
- External programs
$ make
$ ./nutshell
- The REPL is in the
nutshell.c
file - Builtin commands have their separate files with the same name. (
pwd
is exception, with filegetcwd.c
) builtins.c
is for modular one-stop handling of the builtin commandsconstants.h
stores all the constant headers for the shellexecution.c
executes a command given in the string or tokenised formincludes.h
is the common template of headersprompt.c
contains functionality to generate the shell prompttypes.h
is for data structures used internally in the shellutils.c
provides convenience functions, such as string manipulations