Skip to content

Docs: no # comments after commands (zsh passes them as arguments) - #54

Merged
xdotli merged 1 commit into
mainfrom
docs/zsh-inline-comments
Sep 29, 2026
Merged

xdotli merged 1 commit into
mainfrom
docs/zsh-inline-comments

Conversation

@xdotli

@xdotli xdotli commented Sep 29, 2026

Copy link
Copy Markdown
Member

zsh, macOS's default shell, starts with interactivecomments off. A command pasted with a trailing note, such as python arena_cli.py run --challenge tb2-9b --id ENVIRONMENT_ID # preflight: reserves nothing, passes # and the note's words to the command as arguments.

This moves the notes on five commands into the surrounding prose:

  • CONTRIBUTING.md: check_submission.py
  • docs/hf-submission-lab.md: curl … arena_cli.py and arena_cli.py run
  • submissions/README.md: the "Validating locally" block

Whole-line comments stay: in stock zsh they print "command not found: #" and run nothing.

Checked: zsh -f -i -c '[[ -o interactivecomments ]] && echo ON || echo OFF' prints OFF on zsh 5.9 (macOS).

zsh, macOS's default shell, starts with interactivecomments off, so a pasted
'python arena_cli.py run ...   # preflight: reserves nothing' passes '#' and
the note's words to arena_cli.py. The notes move into the prose.
@xdotli
xdotli merged commit 1295c76 into main Sep 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant