# Shell #EI0 (pwd builtin) passes without any changes

**URL:** <https://forum.codecrafters.io/t/shell-ei0-pwd-builtin-passes-without-any-changes/662>\
**Category:** Challenges\
**Created:** [June 7, 2024, 9:48pm UTC](https://forum.codecrafters.io/t/shell-ei0-pwd-builtin-passes-without-any-changes/662 "2024-06-07T21:48:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [June 7, 2024, 9:48pm UTC](https://forum.codecrafters.io/t/shell-ei0-pwd-builtin-passes-without-any-changes/662/1 "2024-06-07T21:48:10Z")

</div>

Looks like the check for `pwd` passes automatically for most languages since `pwd` is present as an external program (`/usr/bin/pwd`).

Ideas to change this:

1. Move `/usr/bin/pwd` to another location for this test so code can’t rely on it
2. Check for `type /usr/bin/pwd` so that users are nudged towards implementing it as a built-in

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [June 7, 2024, 9:48pm UTC](https://forum.codecrafters.io/t/shell-ei0-pwd-builtin-passes-without-any-changes/662/2 "2024-06-07T21:48:57Z")

</div>

Hmm, maybe we should do both - both check for `type pwd` and move `/usr/bin/pwd` out of the way

---

<div class="post-metadata">

**Author:** ![Xenon03](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/xenon03/32/594_2.png) [@Xenon03](https://forum.codecrafters.io/u/Xenon03)\
**Post date:** [June 8, 2024, 10:35am UTC](https://forum.codecrafters.io/t/shell-ei0-pwd-builtin-passes-without-any-changes/662/3 "2024-06-08T10:35:55Z")

</div>

also when doing the cd part, ~ isn’t tested enough (only checks if cd ~ works).  
(don’t know if this is the right place or if I should create a new post 😅)

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [June 18, 2024, 12:51pm UTC](https://forum.codecrafters.io/t/shell-ei0-pwd-builtin-passes-without-any-changes/662/4 "2024-06-18T12:51:31Z")

</div>

This is now fixed! We check for `type pwd` + we remove `/usr/bin/pwd` when testing this stage.

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [June 23, 2024, 12:51pm UTC](https://forum.codecrafters.io/t/shell-ei0-pwd-builtin-passes-without-any-changes/662/5 "2024-06-23T12:51:53Z")

</div>

Closed on June 23, 2024, 12:51pm UTC

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