# Problem with submitting #BR6 stage

**URL:** <https://forum.codecrafters.io/t/problem-with-submitting-br6-stage/15470>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [October 30, 2025, 12:54pm UTC](https://forum.codecrafters.io/t/problem-with-submitting-br6-stage/15470 "2025-10-30T12:54:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammed785](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/mohammed785/32/13974_2.png) [@Mohammed785](https://forum.codecrafters.io/u/Mohammed785)\
**Post date:** [October 30, 2025, 12:54pm UTC](https://forum.codecrafters.io/t/problem-with-submitting-br6-stage/15470/1 "2025-10-30T12:54:04Z")

</div>

I’m stuck on Stage #BR6.

when i use codecrafters submit command the stage fail but when i use codecrafters test it pass also when i try on my machine it works as expected. also i tried using is isatty but it didn’t help

UPDATE 1: after using isatty(STDOUT\_FILENO) it works and passed but failed on the next stage

and the same problem as the previous stage occurred again  
Here are my logs for submit command:  
[tester::#BR6] Running tests for Stage #BR6 (Pipelines - Dual-command pipeline)  
[tester::#BR6] [setup] export PATH=/tmp/raspberry/mango/blueberry:$PATH  
[tester::#BR6] Running ./your\_program.sh  
[tester::#BR6] [setup] echo “pineapple apple\ngrape raspberry\nstrawberry orange\nblueberry mango\npear banana” \> “/tmp/foo/file-65”  
[your-program] $ cat /tmp/foo/file-65 | wc  
[your-program] $ 5 10 78  
[tester::#BR6] ^ Line does not match expected value.  
[tester::#BR6] Expected: " 5 10 78"  
[tester::#BR6] Received: “$ 5 10 78”  
[tester::#BR6] Assertion failed.  
[tester::#BR6] Test failed (try setting ‘debug: true’ in your codecrafters.yml to see more details)

Here are my logs for test command:

[tester::#BR6] Running tests for Stage #BR6 (Pipelines - Dual-command pipeline)

[tester::#BR6] [setup] export PATH=/tmp/mango/blueberry/banana:$PATH

[tester::#BR6] Running ./your\_program.sh

[tester::#BR6] [setup] echo “apple raspberry\nstrawberry mango\nbanana orange\npear pineapple\nblueberry grape” \> “/tmp/qux/file-87”

[your-program] $ cat /tmp/qux/file-87 | wc

[your-program] 5 10 78

[tester::#BR6] ✓ Received expected response

[tester::#BR6] [setup] echo “1. apple grape\n2. raspberry banana\n3. orange strawberry” \> “/tmp/bar/file-26”

[your-program] $ tail -f /tmp/bar/file-26 | head -n 5

[your-program] 1. apple grape

[your-program] 2. raspberry banana

[your-program] 3. orange strawberry

[tester::#BR6] ✓ Received redirected file content

[your-program] 4. grape pear

[tester::#BR6] ✓ Received appended line 4

[your-program] 5. apple banana

[tester::#BR6] ✓ Received appended line 5

[tester::#BR6] Test passed.  
…Rest of stages pass

---

<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:** [October 30, 2025, 7:53pm UTC](https://forum.codecrafters.io/t/problem-with-submitting-br6-stage/15470/3 "2025-10-30T19:53:16Z")

</div>

Hey @Mohammed785, 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:** ![Mohammed785](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/mohammed785/32/13974_2.png) [@Mohammed785](https://forum.codecrafters.io/u/Mohammed785)\
**Post date:** [October 31, 2025, 12:38pm UTC](https://forum.codecrafters.io/t/problem-with-submitting-br6-stage/15470/4 "2025-10-31T12:38:39Z")

</div>

@andy1li i uploaded the code here is the link [repo](https://github.com/Mohammed785/codecrafters-shell-c)

---

<div class="post-metadata">

**Author:** ![Mohammed785](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/mohammed785/32/13974_2.png) [@Mohammed785](https://forum.codecrafters.io/u/Mohammed785)\
**Post date:** [November 1, 2025, 4:36pm UTC](https://forum.codecrafters.io/t/problem-with-submitting-br6-stage/15470/6 "2025-11-01T16:36:35Z")

</div>

i am closing this because i found the error in my code.

---

<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:** [November 2, 2025, 12:10am UTC](https://forum.codecrafters.io/t/problem-with-submitting-br6-stage/15470/7 "2025-11-02T00:10:10Z")

</div>

@Mohammed785 Would you mind sharing what was wrong? Would love to see if we can improve the tester / instructions.

---

<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:** [November 7, 2025, 11:24am UTC](https://forum.codecrafters.io/t/problem-with-submitting-br6-stage/15470/9 "2025-11-07T11:24:11Z")

</div>

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