Essential session storage is required to sign in. Optional analytics remain off unless you allow them.
Write a small Bash utility script (a backup helper, a batch file-renamer, a log summarizer). It must start with a proper shebang and 'set -euo pipefail'; ALWAYS quote variable expansions ("$var"); use 'if'/'[[ ]]' tests and a 'for' or 'while read' loop; capture command output with '$(...)' (not backticks); and use no-spaces-around-'=' assignments. Crucially, it must pass ShellCheck with zero warnings — run it and fix everything it flags. Add comments explaining why each quoting/robustness choice matters.
Shebang + set -euo pipefail; every expansion quoted; [[ ]] tests; $(...) not backticks; no-space assignments; a real loop.
Passes ShellCheck with zero warnings; unsafe patterns (unquoted vars, parsing ls) avoided.
Actually accomplishes the task correctly end-to-end.
Use this README structure to make the work reviewable.
DevPath fetches a read-only, size-capped snapshot. Submitted code is never executed.
# A safe, shellcheck-clean utility script
## Goal
Write a small Bash utility script (a backup helper, a batch file-renamer, a log summarizer). It must start with a proper shebang and 'set -euo pipefail'; ALWAYS quote variable expansions ("$var"); use 'if'/'[[ ]]' tests and a 'for' or 'while read' loop; capture command output with '$(...)' (not backticks); and use no-spaces-around-'=' assignments. Crucially, it must pass ShellCheck with zero warnings — run it and fix everything it flags. Add comments explaining why each quoting/robustness choice matters.
## Acceptance criteria
- [ ] Correct & safe Bash: Shebang + set -euo pipefail; every expansion quoted; [[ ]] tests; $(...) not backticks; no-space assignments; a real loop.
- [ ] ShellCheck clean: Passes ShellCheck with zero warnings; unsafe patterns (unquoted vars, parsing ls) avoided.
- [ ] Does the job: Actually accomplishes the task correctly end-to-end.
## Verification
- [ ] Document installation and run commands.
- [ ] Record automated checks and their exact commands.
- [ ] Add representative output, screenshots, or a short demo where useful.
- [ ] Confirm failure paths and known constraints.
## Decision log
### Decision title
- Context:
- Choice:
- Alternatives considered:
- Tradeoffs:
## Evidence
- Link each rubric criterion to the file, test, or artifact that demonstrates it.
## Known limitations
- List what is intentionally out of scope and what should be improved next.