# Remote tests results doesn't match with my local results

**URL:** <https://forum.codecrafters.io/t/remote-tests-results-doesnt-match-with-my-local-results/4345>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [January 19, 2025, 10:44pm UTC](https://forum.codecrafters.io/t/remote-tests-results-doesnt-match-with-my-local-results/4345 "2025-01-19T22:44:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexncosta](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/alexncosta/32/4368_2.png) [@alexncosta](https://forum.codecrafters.io/u/alexncosta)\
**Post date:** [January 19, 2025, 10:44pm UTC](https://forum.codecrafters.io/t/remote-tests-results-doesnt-match-with-my-local-results/4345/1 "2025-01-19T22:44:48Z")

</div>

I’m stuck on Stage #EZ5.

I’m a little bit confuse with tests results. When I run the code in my machine (Linux Ubuntu), my implementation return the following result:

$ type echo  
echo is /usr/bin/echo  
$ type invalid\_command  
invalid\_command: not found  
$ type ls  
ls is /usr/bin/ls  
$ type echo  
echo is /usr/bin/echo  
$

In this case, my tests were with command echo first, second test invalid\_command, third test with ls command e finally with echo command again. After this tests, as we can see, the results appear consistent with the requirements.

However, when I push the code to the repository, the tests return:

remote: [tester::#EZ5] Running tests for Stage #EZ5 (The type builtin: builtins)  
remote: [tester::#EZ5] Running ./your\_program.sh  
remote: [your-program] $ type echo  
remote: [your-program] echo is /bin/echo  
remote: [tester::#EZ5] Output does not match expected value.  
remote: [tester::#EZ5] Expected: “echo is a shell builtin”  
remote: [tester::#EZ5] Received: “echo is /bin/echo”  
remote: [your-program] $

I didn’t understood the return Expected: “echo is a shell builtin”, I haven’t this output in my code, only in the previous version when I implemented the first version.

---

<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:** [January 20, 2025, 11:31am UTC](https://forum.codecrafters.io/t/remote-tests-results-doesnt-match-with-my-local-results/4345/2 "2025-01-20T11:31:16Z")

</div>

Hi @alexncosta, the output from your code is correct to a certain extent:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/d/de0882b2d5e03a0c6e1a2eb3d0f4658010f3a87e.png)

Actually, `echo` is both a built-in command and an executable on most systems.

You can verify this fact in a real shell. Here’s an example from zsh on my machine:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/3/38d49dc20068b5baefaa313c1dec35a15047a62a.png)

To resolve the issue, ensure that built-in commands take precedence in your code.

* * *

> I didn’t understood the return Expected: “echo is a shell builtin”, I haven’t this output in my code, only in the previous version when I implemented the first version.

It’s not uncommon for changes introduced later to inadvertently affect earlier stages.

You can use [our CLI](https://docs.codecrafters.io/cli/installation) to test against previous stages by running:

```auto
codecrafters test --previous

```

---

<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:** [March 30, 2025, 4:45pm UTC](https://forum.codecrafters.io/t/remote-tests-results-doesnt-match-with-my-local-results/4345/3 "2025-03-30T16:45:51Z")

</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:** [April 4, 2025, 4:46pm UTC](https://forum.codecrafters.io/t/remote-tests-results-doesnt-match-with-my-local-results/4345/4 "2025-04-04T16:46:05Z")

</div>

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