Skip to content

Commit e9b0ce4

Browse files
david22swanclaude
andcommitted
(CAT-2609) Remove unreliable grep/sed JSON fallback from _parse_input.sh
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 81f5470 commit e9b0ce4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

.claude/hooks/_parse_input.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ if command -v jq >/dev/null 2>&1; then
99
cmd=$(printf '%s' "$input" | jq -r '.tool_input.command // ""')
1010
elif command -v python3 >/dev/null 2>&1; then
1111
cmd=$(printf '%s' "$input" | python3 -c "import sys,json; print(json.load(sys.stdin).get('tool_input',{}).get('command',''))" 2>/dev/null || echo "")
12-
elif command -v grep >/dev/null 2>&1 && command -v sed >/dev/null 2>&1; then
13-
cmd=$(printf '%s' "$input" | grep -o '"command"[[:space:]]*:[[:space:]]*"[^"]*"' | sed 's/^"command"[[:space:]]*:[[:space:]]*"//;s/"$//')
1412
else
1513
exit 0
1614
fi

0 commit comments

Comments
 (0)