Skip to content

Conversation

@joshrnoll
Copy link
Contributor

@joshrnoll joshrnoll commented Dec 18, 2025

Fixed bash syntax error by changing double curly braces to single curly braces in function definitions for bash and zsh terminal integration. The double braces were being output literally, causing 'syntax error near unexpected token' errors.

Changes:

  • goose_preexec() function definitions in BASH_CONFIG and ZSH_CONFIG
  • command_not_found_handle/handler() function definitions

Fixes the error:
bash: eval: line 100: syntax error near unexpected token '{{' bash: eval: line 100: 'goose_preexec() {{'

Summary

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Related Issues

Relates to #6142
Discussion: #6142 (comment)

Screenshots/Demos (for UX changes)

Before:

After:

Fixed bash syntax error by changing double curly braces to single
curly braces in function definitions for bash and zsh terminal
integration. The double braces were being output literally, causing
'syntax error near unexpected token' errors.

Changes:
- goose_preexec() function definitions in BASH_CONFIG and ZSH_CONFIG
- command_not_found_handle/handler() function definitions

Fixes the error:
bash: eval: line 100: syntax error near unexpected token '{{'
bash: eval: line 100: 'goose_preexec() {{'

Signed-off-by: Josh Noll <[email protected]>
@blackgirlbytes
Copy link
Contributor

amazing, and it got approved. I'm going to merge it.

@blackgirlbytes blackgirlbytes merged commit 8e1eb1e into block:main Dec 23, 2025
16 checks passed
wpfleger96 added a commit that referenced this pull request Dec 23, 2025
* main: (155 commits)
  remove Tool Selection Strategy preview (#6250)
  fix(cli): correct bash syntax in terminal integration functions (#6181)
  fix : opening a session to view it modifies session history order in desktop (#6156)
  test: fix recipe and audio tests to avoid side effects (#6231)
  chore: Update gemini versions in test_providers.sh (#6246)
  feat: option to stream json - jsonl really (#6228)
  feat: add mcp app renderer (#6095)
  docs: update skills extension to support .agents/skills directories (#6199)
  Add YouTube short to Chrome DevTools MCP tutorial (#6244)
  docs: Caveats for privacy information in logs documentation (#6218)
  move goose issue solver to opus (#6233)
  feat: improved UX for tool calls via execute_code (#6205)
  Blog: Code Mode Doesn't Replace MCP (#6227)
  fix: prevent keychain requests during cargo test (#6219)
  test: fix test_max_turns_limit slow execution and wrong message type (#6221)
  Skills vs MCP blog (#6220)
  Add blog post: Does Your AI Agent Need a Plan? (#6209)
  fix(ui): enable MCP UI to send a prompt message when an element is clicked (#6207)
  docs: param option for recipe deeplink/open (#6206)
  docs: edit in place or fork session (#6203)
  ...
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