[BUG] Invalid alias generation with double dashes: `alias -- -- -='cd -'`

Resolved 💬 5 comments Opened Aug 15, 2025 by tuxpeople Closed Jan 7, 2026

Environment:

  • Platform: Anthropic API
  • Claude CLI version: 1.0.81 (Claude Code)
  • Operating System: macOS 15.6 (24G84)
  • Terminal: iTerm2 and VSCode Terminal
  • Shell: bash

Bug Description:
Claude Code generates invalid bash aliases in shell snapshots with syntax:
alias -- -- -='cd -'

This causes the error:
alias: --: not found

Expected behavior:
Should generate valid alias syntax like:
alias -='cd -'

Location:
~/.claude/shell-snapshots/snapshot-bash-*.sh around line 181

Impact:
Non-critical but generates error messages during script execution.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗