I can’t pass the tests for the stage #JV1. I’ve changed some code for running non-builtin commands and now the tests won’t pass. Here is the error message:
[tester::#JV1] Running tests for Stage #JV1 (Redirection - Redirect stdout)
[tester::#JV1] [setup] export PATH=/tmp/strawberry/mango/blueberry:$PATH
[tester::#JV1] Running ./your_program.sh
[tester::#JV1] [setup] echo -n "blueberry" > "/tmp/bar/blueberry"
[tester::#JV1] [setup] echo -n "mango" > "/tmp/bar/mango"
[tester::#JV1] [setup] echo -n "pineapple" > "/tmp/bar/pineapple"
[your-program] $ ls -1 /tmp/bar > /tmp/quz/baz.md
[your-program] $ cat /tmp/quz/baz.md
[your-program] blueberry
[your-program] mango
[your-program] pineapple
[tester::#JV1] ✓ Received redirected file content
[your-program] $ echo 'Hello Maria' 1> /tmp/quz/foo.md
[your-program] $ cat /tmp/quz/foo.md
[your-program] Hello Maria
[tester::#JV1] ✓ Received redirected file content
[your-program] $ cat /tmp/bar/mango nonexistent 1> /tmp/quz/qux.md
[your-program] cat: nonexistent: No such file or directory
[tester::#JV1] ✓ Received error message
[your-program] $ cat /tmp/quz/qux.md
[your-program] $
[tester::#JV1] Output does not match expected value.
[tester::#JV1] Expected: "mango"
[tester::#JV1] Received: "$ "
[tester::#JV1] Assertion failed.
[tester::#JV1] Test failed