I was solving this section and got it to work, but at the very end the test case decided to test (Navigation - The cd builtin: Home directory) and it printed this to console.
[tester::#GP4] Running tests for Stage #GP4 (Navigation - The cd builtin: Home directory)
[tester::#GP4] Running ./your_program.sh
[your-program] $ cd /tmp/grape/pear/banana
[your-program] cd: : No such file or directory
[tester::#GP4] ^ Expected prompt ("$ ") but received “cd: : No such file or directory”
[your-program] $
[tester::#GP4] Test failed
I don’t understand why I am being asked this because I already solved the problem in the first place and I think that because it’s a different stage and the environment was not configured to create the specified directory it never existed in the first place.
EDIT: link GitHub - Hoksolinvan/codecrafters-shell-cpp · GitHub