Stage #MG5 works as expected locally but remote test fails

Stuck on stage #MG5

Program works perfectly on my local terminal.

codecrafters-shell-c$ PATH="/tmp/baz:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ./your_program.sh
$ type cat
cat is /usr/bin/cat
$ type ls
ls is /usr/bin/ls
$ exit

But when I test remotely, my program apparently does not print anything, and it fails.

[tester::#MG5] Running tests for Stage #MG5 (The type builtin: executable files)
[tester::#MG5] [setup] export PATH=/tmp/bar:$PATH
[tester::#MG5] [setup] Available executables:
[tester::#MG5] [setup] - my_exe
[tester::#MG5] Running ./your_program.sh
[your-program] $ type cat
[tester::#MG5] Output does not match expected value.
[tester::#MG5] Expected: "cat is /bin/cat"
[tester::#MG5] Received: ""
[tester::#MG5] Assertion failed.
[tester::#MG5] Test failed

This is my repo:
codecrafters-shell-c

Hi, thanks for your post!

I’m currently out of the office and will return on Feb 3. I’ll get back to you as soon as possible after I’m back.

@dhruvj27, sorry for the delayed response!

Let me know if you still need assistance with this.

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!

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