# Test Failed with: ./build/shell: not found

**URL:** <https://forum.codecrafters.io/t/test-failed-with-build-shell-not-found/16105>\
**Category:** Bug Reports\
**Tags:** challenge:shell\
**Created:** [May 13, 2026, 3:01pm UTC](https://forum.codecrafters.io/t/test-failed-with-build-shell-not-found/16105 "2026-05-13T15:01:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivekjoshi556](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/vivekjoshi556/32/4192_2.png) [@vivekjoshi556](https://forum.codecrafters.io/u/vivekjoshi556)\
**Post date:** [May 13, 2026, 3:01pm UTC](https://forum.codecrafters.io/t/test-failed-with-build-shell-not-found/16105/1 "2026-05-13T15:01:29Z")

</div>

I’m stuck on Stage **File completion** #zv2.

I’ve tried disabling this stage and trying another stage and there I see error that I expect like `job not found` or something relevant. But shell not found, I don’t know, that feels like something that’s not happening because of something I am doing (or maybe it is). Can you please help me?

I made sure that I haven’t changed the `your_program.sh`file or other sh files in the code as well.

Here are my logs:

```auto
Initiating test run...

⏳ Turbo test runners busy. You are in queue.

Upgrade to skip the wait: https://codecrafters.io/turbo

Running tests on your code. Logs should appear shortly...

[compile] -- Running vcpkg install
[compile] All requested packages are currently installed.
[compile] All requested installations completed successfully in: 9.9 us
[compile] -- Running vcpkg install - done
[compile] -- Configuring done (0.2s)
[compile] -- Generating done (0.0s)
[compile] -- Build files have been written to: /app/build
[compile] [7%] Building CXX object CMakeFiles/shell.dir/src/core/command.cpp.o
[compile] [14%] Building CXX object CMakeFiles/shell.dir/src/core/commandFactory.cpp.o
[compile] [21%] Building CXX object CMakeFiles/shell.dir/src/core/commandRegistry.cpp.o
[compile] [28%] Building CXX object CMakeFiles/shell.dir/src/core/commands/cd.cpp.o
[compile] [35%] Building CXX object CMakeFiles/shell.dir/src/core/commands/cmdexec.cpp.o
[compile] [42%] Building CXX object CMakeFiles/shell.dir/src/core/commands/echo.cpp.o
[compile] [50%] Building CXX object CMakeFiles/shell.dir/src/core/commands/exit.cpp.o
[compile] [57%] Building CXX object CMakeFiles/shell.dir/src/core/commands/history.cpp.o
[compile] [64%] Building CXX object CMakeFiles/shell.dir/src/core/commands/pwd.cpp.o
[compile] [71%] Building CXX object CMakeFiles/shell.dir/src/core/commands/type.cpp.o
[compile] [78%] Building CXX object CMakeFiles/shell.dir/src/core/terminalSettings.cpp.o
[compile] [85%] Building CXX object CMakeFiles/shell.dir/src/main.cpp.o
[compile] [92%] Building CXX object CMakeFiles/shell.dir/src/utils/commandUtils.cpp.o
[compile] [100%] Linking CXX executable shell
[compile] [100%] Built target shell
[compile] Moved ./.codecrafters/run.sh → ./your_program.sh
[compile] Compilation successful.

Debug = true

[tester::#ZV2] Running tests for Stage #ZV2 (Filename Completion - File completion)
[tester::#ZV2] [working_dir] - raspberry-32.txt
[tester::#ZV2] Running ./your_program.sh
[your-program] /app/your_program.sh: 12: exec: ./build/shell: not found
[tester::#ZV2] ^ Expected prompt ("$ ") but received "/app/your_program.sh: 12: exec: ./build/shell: not found"
[tester::#ZV2] Test failed

View our article on debugging test failures: https://codecrafters.io/debug

```

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [May 13, 2026, 8:05pm UTC](https://forum.codecrafters.io/t/test-failed-with-build-shell-not-found/16105/3 "2026-05-13T20:05:13Z")

</div>

Hey @vivekjoshi556, I’ve pushed a fix to your repo. You can run `git pull` to sync the changes.

Let me know if you still run into any issues.

---

<div class="post-metadata">

**Author:** ![vivekjoshi556](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/vivekjoshi556/32/4192_2.png) [@vivekjoshi556](https://forum.codecrafters.io/u/vivekjoshi556)\
**Post date:** [May 14, 2026, 12:51am UTC](https://forum.codecrafters.io/t/test-failed-with-build-shell-not-found/16105/4 "2026-05-14T00:51:02Z")

</div>

Hi @andy1li,

Thank you very much that fixed it. I understand the solution you pushed, but can you please help me understand why was it failing for me and working for other? Is it something I am doing?

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [May 14, 2026, 1:03am UTC](https://forum.codecrafters.io/t/test-failed-with-build-shell-not-found/16105/5 "2026-05-14T01:03:22Z")

</div>

Sure! Previously, we ran your program from the repo root directory, so relative paths worked fine

In the Filename Completion extension though, the tester runs your program from a different working directory, so those relative paths no longer resolve as expected.

We updated the starter code to handle this, but existing repos weren’t automatically updated, so this wasn’t your fault at all.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [May 21, 2026, 1:03am UTC](https://forum.codecrafters.io/t/test-failed-with-build-shell-not-found/16105/6 "2026-05-21T01:03:42Z")

</div>

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