The lorem executable has 2 issues:
* The elements of the array need to be separated by " " or "\n".
* A final "\n" needs to be output (to get a POSIX text file and
to avoid issues in an interactive shell).
Without the separators, the lorem executable is useless.
For instance, with bash:
vinc17@qaa:~$ lorem -w 5
accusantiumeosrationeestofficiavinc17@qaa:~$
One cannot see the separation between the words and this is mixed up
with the shell prompt.
I've attached the patch I've written for the pull request upstream.