eca icon indicating copy to clipboard operation
eca copied to clipboard

eca_git tool errors on apostrophe in a $() block

Open michaelwhitford opened this issue 4 months ago • 0 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Please avoid AI slops, be concise, and focus on what matters for this issue.

Describe the bug

If the AI model tries to use a word with an apostrophe while inside a $() block it produces an error.

To Reproduce

Steps to reproduce the behavior:

The error happens when a model tries to use an apostrophe (don't, can't, etc) inside a $() block.

❌ git commit -m "$(cat <<EOF … it's … EOF)" → bash: unexpected EOF while looking for matching ' — apostrophe inside $(…), unquoted delimiter ✅ git commit -m "$(cat <<'EOF' … no apostrophe … EOF)" → runs fine — same construct, no apostrophe ✅ git … <<< "it's a test" → runs fine — apostrophe present but not inside $(…)

Clear example that triggers the issue:

git commit -m "$(cat <<EOF
it's
EOF
)"

Expected behavior

No error from an apostrophe in a git commit command.

Doctor

not applicable, saw across multiple models and configurations

Screenshots None

Additional context Add any other context about the problem here.

michaelwhitford avatar Jul 29 '26 21:07 michaelwhitford