# Tests won't pass on #MG5

**URL:** <https://forum.codecrafters.io/t/tests-wont-pass-on-mg5/3511>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [December 17, 2024, 4:22pm UTC](https://forum.codecrafters.io/t/tests-wont-pass-on-mg5/3511 "2024-12-17T16:22:48Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![D10f](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/d10f/32/3530_2.png) [@D10f](https://forum.codecrafters.io/u/D10f)\
**Post date:** [December 18, 2024, 4:40pm UTC](https://forum.codecrafters.io/t/tests-wont-pass-on-mg5/3511/9 "2024-12-18T16:40:37Z")

</div>

I’ve found the issue with the second error regarding the `my_exe` command… it was completely my own fault, as I didn’t realize that I was calling `strtok` one extra time before actually starting going over the directories, effectively removing the first element in the PATH variable…

Sorry everyone 😅

However, there’s still the issue of:

```auto
[tester::#MG5] Expected: "cp is /bin/cp"
[tester::#MG5] Received: "cp is /usr/bin/cp"

```

I still have no idea why this is a happening.

---

_[View the full topic](https://forum.codecrafters.io/t/tests-wont-pass-on-mg5/3511)._
