Shell challenge in C. Stuck on Stage #NI6 due to a test error on #GP4

I’m stuck on Stage #NI6 ,
The tests pass for this stage, but failed on the previous one GP4 that was before passed. In my implementation it works ok, not sure if is related to some caching?

Here are my logs:

[your-program] $ cat '/tmp/bar/f   86' '/tmp/bar/f   41' '/tmp/bar/f   31'
[your-program] blueberry banana.pineapple blueberry.blueberry banana.
[tester::#NI6] ✓ Received expected response
[your-program] $
[tester::#NI6] Test passed.

[tester::#GP4] Running tests for Stage #GP4 (Navigation - The cd builtin: Home directory)
[tester::#GP4] Running ./your_program.sh
[your-program] $ cd /tmp/apple/blueberry/pear
[your-program] cd: /tmp/apple/blueberry/pear : No such file or directory
[tester::#GP4] Expected prompt ("$ ") but received "cd: /tmp/apple/blueberry/pear : No such file or directory"

Our tester is currently down. Once it’s back up, I’ll assist with debugging. Thank you for your patience!

1 Like

Hi @amarjen, I tried running your code against the previous stages, but it’s actually no longer passing the stage #MG5 (The type builtin: executable files).

Suggestions:

  1. Use our CLI to test against previous stages by running:
codecrafters test --previous
  1. Focus on fixing the early stages first, as later stages depend on them.
1 Like

Ah… wrestling with malloc, now that is fixed. Tester went well with #GP4, and now working on #NI6. Thanks for your help.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.