[Shell] Maybe Bug Report on #JV1

I’m solving this challenge with Rust, I think my answer should be correct?

When the child process prints to stderr it writes the full path to the failed executable, but the tester expects only its “name”.

The logs should make it clearer:

Output does not match expected value.
Expected: "cat: nonexistent: No such file or directory"
Received: "/usr/bin/cat: nonexistent: No such file or directory"

Basically, the only difference is /usr/bin/cat instead of cat.

I’m not sure if I should consider it a mistake and change my code, or rather something the tester should handle.

What do you guys think?

P.S. Sorry if it’s messy, I had a hard time explaining it for some reason :sweat:

Hi @Remokc, we aim to match the behavior of a standard shell as closely as possible. For example, this is from zsh on my machine:

Looks like you’ve got past this stage — do you happen to remember what was wrong? Would love to see if we can improve the tester / instructions.

Hey, thank you for answering, now that you put it like this it makes more sense to me that it was my mistake.

Actually I’ve looked more in the forum and found this thread Mismatch between expected and received in JV1, so I fixed it.

1 Like

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