Skip to content

Fix shell script quoting issues#1088

Merged
agentydragon merged 1 commit intodevelfrom
claude/fix-shell-quoting
Mar 28, 2026
Merged

Fix shell script quoting issues#1088
agentydragon merged 1 commit intodevelfrom
claude/fix-shell-quoting

Conversation

@agentydragon
Copy link
Copy Markdown
Owner

Summary

  • bash-init.sh: quote $(printf) in LESS_TERMCAP assignments
  • build.sh: quote ${DESKTOP_TAG} and ${MCP_TAG} in docker commands
  • entrypoint.sh: quote $RESOLUTION in vncserver -geometry

Split out from #1085 (shellcheck) so the code fixes land independently of the tooling setup.

Test plan

  • Scripts still work (no behavioral change — quoting prevents word splitting on values that never contain spaces, but is correct practice)

https://claude.ai/code/session_01TVjKdv6UebLZt9FP7ZuAbt

- bash-init.sh: quote $(printf) in LESS_TERMCAP assignments
- build.sh: quote ${DESKTOP_TAG} and ${MCP_TAG} in docker commands
- entrypoint.sh: quote $RESOLUTION in vncserver -geometry

https://claude.ai/code/session_01TVjKdv6UebLZt9FP7ZuAbt
Copilot AI review requested due to automatic review settings March 28, 2026 06:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes ShellCheck-relevant quoting issues in a few shell scripts to prevent unintended word splitting and make argument/env-var handling more robust.

Changes:

  • Quote $(printf ...) expansions used in LESS_TERMCAP_* environment variable assignments for colored man output.
  • Quote Docker tag variables in docker build/docker push invocations.
  • Quote the VNC -geometry argument derived from $RESOLUTION.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
nix/home/shell/bash-init.sh Quotes printf command substitutions in LESS_TERMCAP_* env assignments within the man() wrapper.
cluster/k8s/agents/devbot/docker/desktop/entrypoint.sh Quotes $RESOLUTION when passed to vncserver -geometry.
cluster/k8s/agents/devbot/docker/build.sh Quotes ${DESKTOP_TAG} / ${MCP_TAG} in Docker build/push commands.

@agentydragon agentydragon merged commit d0be8f1 into devel Mar 28, 2026
17 checks passed
@agentydragon agentydragon deleted the claude/fix-shell-quoting branch March 28, 2026 06:43
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.

3 participants