codecrafters-shell-c

personal solution to the "Build Your Own Shell" challenge from codecrafters
git clone https://github.com/5hif7y/codecrafters-shell-c.git
Log | Files | Refs | README

README.md (1354B)


      1 [![progress-banner](https://backend.codecrafters.io/progress/shell/e4ce9066-cb72-45a8-a571-a7d398bc02ae)](https://app.codecrafters.io/users/codecrafters-bot?r=2qF)
      2 
      3 This is a starting point for C solutions to the
      4 ["Build Your Own Shell" Challenge](https://app.codecrafters.io/courses/shell/overview).
      5 
      6 In this challenge, you'll build your own POSIX compliant shell that's capable of
      7 interpreting shell commands, running external programs and builtin commands like
      8 cd, pwd, echo and more. Along the way, you'll learn about shell command parsing,
      9 REPLs, builtin commands, and more.
     10 
     11 **Note**: If you're viewing this repo on GitHub, head over to
     12 [codecrafters.io](https://codecrafters.io) to try the challenge.
     13 
     14 # Passing the first stage
     15 
     16 The entry point for your `shell` implementation is in `app/main.c`. Study and
     17 uncomment the relevant code, and push your changes to pass the first stage:
     18 
     19 ```sh
     20 git commit -am "pass 1st stage" # any msg
     21 git push origin master
     22 ```
     23 
     24 Time to move on to the next stage!
     25 
     26 # Stage 2 & beyond
     27 
     28 Note: This section is for stages 2 and beyond.
     29 
     30 1. Ensure you have `c (9.2)` installed locally
     31 1. Run `./your_program.sh` to run your program, which is implemented in
     32    `app/main.c`.
     33 1. Commit your changes and run `git push origin master` to submit your solution
     34    to CodeCrafters. Test output will be streamed to your terminal.