You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first "hello world" challenge is slightly misleading. Tools such as echo emit an extra \n character, which was not included in the question description.
If you attempt to solve this problem verbatim and do, for example, printf 'hello world' you will not pass the challenge.
I had to do printf 'hello world\n' in order to pass, which I think is not reflected in the question description.
Thanks for the report, the description could probably be improved here. This came up in a different issue and it might be a good idea to mention the line ending in the hello world problem like you suggested as it applies for all of them.
I think rather than rewriting all the challenges the right solution would be for @jarv to add a phantom \n at the end of the output, if it's missing, before verifying the output.
Summary
The first "hello world" challenge is slightly misleading. Tools such as
echo
emit an extra\n
character, which was not included in the question description.If you attempt to solve this problem verbatim and do, for example,
printf 'hello world'
you will not pass the challenge.I had to do
printf 'hello world\n'
in order to pass, which I think is not reflected in the question description.Steps to reproduce
If applicable please provide a direct link to the challenge, example: https://cmdchallenge.com/#/hello_world
The text was updated successfully, but these errors were encountered: