Hello. I was attempting the #GY5 stage on the challenge, but my code keeps on failing because command completion does not work for the tester with echo. This works fine locally when I have tested it. Recording of me testing it. Logs are at this pastebin.. Thanks.
Hey @FUMEAW, could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.
Sure. Here you go
@FUMEAW I gave your shell a try. Autocompletion works well for the built-in echo
, but it doesn’t seem to handle executables like cat
yet, which is the goal of #gy5 Executable Completion:
Looks like the bug is here:
When find
doesn’t find anything, it returns end
. The current logic is flipped and prevents executables from being registered.
Let me know if you’d like further clarification!
I fixed the problem. Tysm
1 Like
$ echo 'hello test' 'script''example' world''shell
hello test scriptexample worldshell
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.