Stage #IZ3 exit regression after adding

I added support for the echo builtin, but my exit builtin is now broken. It works locally, I added some debug prints, but it fails remotely.

For some reason, on remote the last exit 0 says it gets 3 arguments, where the last one is just an empty string. But I can’t reproduce this locally.


(first is remote, second locally)

My repo: assembly/cc-shell - Codeberg.org

any help is appreciated

Hey @x86-assembly, looks like you’ve resolved the issue. Do you happen to remember what was wrong? Would love to see if we can improve the tester / instructions.

Hi, @andy1li . I didn’t actually solve it, I just made it so exit ignored all additional arguments.

@x86-assembly I can reproduce the error locally like this:

This suggests the bug lies within parse_command. You might want to try using strtok() instead.