When I ran the test cases, this error appear
But I tried to simulate this behavior create a temp directory is working well, I’m stuck
When I ran the test cases, this error appear
But I tried to simulate this behavior create a temp directory is working well, I’m stuck
Hey @dylanbatar, could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.
Hey @andy1li sorry for the delay sure, GitHub - dylanbatar/own-shell
@dylanbatar, the bug is in this line:
The issue is clear after logging out path
:
When path
is an absolute path, concatenating the current directory with it doesn’t make much sense.
Let me know if you’d like further clarification!
Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!