Challenge: shell : pwd command working fine on my local compiled but failing due to command not found due to path for the pwd binary might not be found

tried pwd command on my local WSL environment and it is working correctly but when submitted to codecrafters it says that the command is not found. Suspecting if the path is available or not on the station wherever it checked

Hey @quantumbit1, could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.


Suspecting if the path is available or not

One thing to note: although pwd can exist as both a shell builtin and a standalone executable, the goal of this stage is to implement the builtin version, without relying on the external pwd executable.

If your shell is resolving pwd via PATH, that could explain why it’s working locally but failing in the tester environment.

Thanks @andy1li for pointing that out it worked now when I implemented it natively