1
0
Fork
You've already forked codecrafters-shell-java
0
No description
  • Java 98.4%
  • Shell 1.6%
Find a file
2026年02月01日 00:27:48 +08:00
.codecrafters Reduce JVM startup overhead and memory 2026年01月24日 18:33:36 +08:00
instructions Add instruction docs & some refactoring 2026年02月01日 00:27:48 +08:00
src Add instruction docs & some refactoring 2026年02月01日 00:27:48 +08:00
.gitattributes init [skip ci] 2026年01月14日 02:57:30 +00:00
.gitignore Append stdout >> 2026年01月16日 23:33:42 +08:00
codecrafters.yml Refactoring 2026年01月30日 14:57:47 +08:00
pom.xml Refactoring 2026年01月30日 14:57:47 +08:00
README.md Refactoring 2026年01月30日 14:57:47 +08:00
your_program.sh History persistence 2026年01月21日 00:45:09 +08:00

progress-banner

This is a starting point for Java solutions to the "Build Your Own Shell" Challenge.

In this challenge, you'll build your own POSIX compliant shell that's capable of interpreting shell commands, running external programs and builtin commands like cd, pwd, echo and more. Along the way, you'll learn about shell command parsing, REPLs, builtin commands, and more.

Note: If you're viewing this repo on GitHub, head over to codecrafters.io to try the challenge.

Passing the first stage

The entry point for your shell implementation is in src/main/java/shell/Main.java. Study and uncomment the relevant code, and push your changes to pass the first stage:

git commit -am "pass 1st stage" # any msg
git push origin master

Time to move on to the next stage!

Stage 2 & beyond

Note: This section is for stages 2 and beyond.

  1. Ensure you have mvn installed locally
  2. Run ./your_program.sh to run your program, which is implemented in src/main/java/shell/Main.java.
  3. Commit your changes and run git push origin master to submit your solution to CodeCrafters. Test output will be streamed to your terminal.