I feel it's kind of interesting as a minimal Unix program that does something useful without linking to the C library, just with syscalls.
Even for echo, this one is extremely minimalist: first argument only, and a maximum of 255 characters.
Even for echo, this one is extremely minimalist: first argument only, and a maximum of 255 characters.
More importantly this program has a bug in that it doesn't check if there is an argument passed to it at all.
Good effort but can improve a lot. I would praise the documentation but it is rather imprecise. All in all i wouldn't put it on the front page of HN yet.
echo is far from finished, and it's safe to say "I don't know what the hell I'm doing", but hey, I gotta start somewhere.
But you can also pass arguments to execve(2) which are not null-terminated.