# Unrelated test case for "Build your own Shell" - Single Quote

**URL:** <https://forum.codecrafters.io/t/unrelated-test-case-for-build-your-own-shell-single-quote/16080>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [April 30, 2026, 12:59am UTC](https://forum.codecrafters.io/t/unrelated-test-case-for-build-your-own-shell-single-quote/16080 "2026-04-30T00:59:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoksolinvan](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/hoksolinvan/32/24889_2.png) [@Hoksolinvan](https://forum.codecrafters.io/u/Hoksolinvan)\
**Post date:** [April 30, 2026, 12:59am UTC](https://forum.codecrafters.io/t/unrelated-test-case-for-build-your-own-shell-single-quote/16080/1 "2026-04-30T00:59:13Z")

</div>

I was solving this section and got it to work, but at the very end the test case decided to test (Navigation - The cd builtin: Home directory) and it printed this to console.

[tester::#GP4] Running tests for Stage #GP4 (Navigation - The cd builtin: Home directory)  
[tester::#GP4] Running ./your\_program.sh  
[your-program] $ cd /tmp/grape/pear/banana  
[your-program] cd: : No such file or directory  
[tester::#GP4] ^ Expected prompt ("$ ") but received “cd: : No such file or directory”  
[your-program] $  
[tester::#GP4] Test failed

I don’t understand why I am being asked this because I already solved the problem in the first place and I think that because it’s a different stage and the environment was not configured to create the specified directory it never existed in the first place.

EDIT: link [GitHub - Hoksolinvan/codecrafters-shell-cpp · GitHub](https://github.com/Hoksolinvan/codecrafters-shell-cpp/tree/main)

---

<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:** [April 30, 2026, 3:04am UTC](https://forum.codecrafters.io/t/unrelated-test-case-for-build-your-own-shell-single-quote/16080/3 "2026-04-30T03:04:38Z")

</div>

Hey @Hoksolinvan, could you [upload your code to GitHub](https://docs.codecrafters.io/features/publish-to-github) and share the link? It will be much easier to debug if I can run it directly.

---

<div class="post-metadata">

**Author:** ![Hoksolinvan](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/hoksolinvan/32/24889_2.png) [@Hoksolinvan](https://forum.codecrafters.io/u/Hoksolinvan)\
**Post date:** [April 30, 2026, 3:49am UTC](https://forum.codecrafters.io/t/unrelated-test-case-for-build-your-own-shell-single-quote/16080/4 "2026-04-30T03:49:02Z")

</div>

Yep, I uploaded it now!

---

<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:** [April 30, 2026, 8:30am UTC](https://forum.codecrafters.io/t/unrelated-test-case-for-build-your-own-shell-single-quote/16080/6 "2026-04-30T08:30:23Z")

</div>

Pasting my email response here as well:

> After your code passes a stage, our tester re-runs all previous stages as well to prevent regressions. Now it looks like Stage #GP4 may be failing unexpectedly here.

* * *

You can confirm whether earlier stages are broken by re-running previous tests using [our CLI](https://docs.codecrafters.io/cli/installation):

```auto
codecrafters test --previous

```

Let me know what you find.

---

<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 7, 2026, 7:01pm UTC](https://forum.codecrafters.io/t/unrelated-test-case-for-build-your-own-shell-single-quote/16080/8 "2026-05-07T19:01:40Z")

</div>

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

---

<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 12, 2026, 7:02pm UTC](https://forum.codecrafters.io/t/unrelated-test-case-for-build-your-own-shell-single-quote/16080/9 "2026-05-12T19:02:03Z")

</div>

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