claude-code - 💡(How to fix) Fix [FEATURE] CLAUDE_CODE_SHELL applied to the shell used by hooks

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Claude already allows CLAUDE_CODE_SHELL to point towards a shell of the users choice, meaning they have flexibility to leverage their own prefered shell. This however is not possible with hooks, as all hooks wrap the command within /bin/sh -c "<hook>"

Proposed Solution

Allow CLAUDE_CODE_SHELL to set the hook shell, or if prefered introduce a CLAUDE_CODE_HOOK_SHELL

Alternative Solutions

No response

Priority

Critical - Blocking my work

Feature Category

Configuration and settings

Use Case Example

No response

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] CLAUDE_CODE_SHELL applied to the shell used by hooks