Repository navigation
Tighten shopping tests and clarify comment syntax - #993
Conversation
Check that task 2 counts the given file, use a filename with spaces so unquoted expansions fail, explain that # only starts a comment at the start of a word, and fix a typo. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested. If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos. For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping |
|
|
||
| * The `#` character starts a _comment_. | ||
| Any words following the `#` are ignored by the shell; the comment is meant only for reading. | ||
| * A word beginning with `#` starts a _comment_. |
There was a problem hiding this comment.
This implies to me that # followed by a space does not start a comment.
There was a problem hiding this comment.
Good point. I've added that the # can be a word by itself, as in # like this.
There was a problem hiding this comment.
I'm not sure how to better phrase it, but the wording describing comment-starts feels a bit awkward. Maybe something like, "# starts a comment, except when it is inside a word."
There was a problem hiding this comment.
I've changed the wording, LMK if it's OK.
I took out the bit about comments being only for reading or only for humans. That should be obvious.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
This PR has been translated 🚀 |
Follow-ups from a review of the
shoppingconcept exercise.$shopping_list_filefails.#starts a comment only at the beginning of a word, in thecommands-and-argumentsconcept docs and the exercise introduction.The example solution passes all 5 tests, and
bin/configlet lintand ShellCheck pass.The Docker test-runner validation was not run.
🤖 Generated with Claude Code