Skip to content

tranghane/code_shell_homemade

Repository files navigation

This is a homemade Linux code shell

Completed task:

  • Handle missing command
  • REPL (Read-Eval-Print Loop)
  • Exit builtin
  • Echo builtin
  • Type builtin
  • Type builtin check for executable files
  • run a program in one of the PATH directory
  • pwd command
  • cd command
  • ls command

How to run program:

  • download CMake
  • download vcpkg
  • make sure that the vcpkg/scripts/buildsystems/vcpkg.cmake file is in the same folder with code_shell_homemade
  • make sure to change the path in /build/CMakeCache.txt by replacing INSERT_USER_NAME_HERE
  • make sure to fix the path of your vcpkg in your_shell.sh
  • Run ./your_shell.sh to run your program, which is implemented in src/main.cpp.