Repo for Shell project
-
build using gcc
gcc -o myShell *.c -Wall -Werror -
start the shell
./myshell
-
myShell- this is main function with actually just call shell_loop
-
shell_loop- this the loop that keeps:
- printing "myShell>"
- taking input
- phasing command
- Constants set:
CMD_MAX_LENfor command max sizeARGU_MAX_NUMfor arguments (which acctually also counts command itself and NULL at the end )
- this the loop that keeps:
-
buildin_exec- execute the build-in function