2
Implement PATH resolution
Build Shell from scratch
3 hours
Level 2 of 2
Add support for finding executables in PATH directories
Objectives
Complete these objectives to finish this level
- Parse PATH environment variable
- Search for executables in PATH dirs
- Handle absolute and relative paths
Test Cases
Your implementation should pass these tests
- Commands found in PATH work
- Absolute paths work
- Relative paths work
Hints
- 💡 PATH is colon-separated on Unix
- 💡 Check if file exists and is executable
- 💡 Try each PATH directory in order
Challenge Progress
Level 2 of 2100%