Answer prose round 1: 0 🔴, 6 🟡 (0 misread); rewrite each <verb> nothing to the negation rule, tighten the new docstrings and comments

This commit is contained in:
2026-11-12 20:33:32 +01:00
parent 7e29dc0014
commit 14e6756a53
61 changed files with 104 additions and 104 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ def segments(command: str) -> list[list[str]]:
- a file descriptor before a redirect, as in `2>&1`, stays a word;
- a heredoc's body is dropped;
- variables, aliases and functions are not expanded;
- a line with an unbalanced quote yields nothing."""
- a line with an unbalanced quote doesn't yield anything."""
text = uncommented(HEREDOC.sub(lambda heredoc: heredoc.group(0).split("\n", 1)[0], command))
tokens = lexed(text)
if tokens is None: