Browse the study library +
← All practice questions

Your CI job running claude "Analyze this PR" hangs waiting for input. What's the correct fix?

Show answer and explanation

Answer: C

-p/--print is the documented non-interactive mode: it processes the prompt, prints to stdout, and exits. CLAUDE_HEADLESS and --batch aren't real; stdin redirection is a workaround, not the fix.

`-p`/`--print` وہ درست بغیر-بات چیت (non-interactive) طریقہ ہے: یہ پرامپٹ چلا کر نتیجہ چھاپتا ہے اور بند ہو جاتا ہے۔ `CLAUDE_HEADLESS` اور `--batch` اصلی نہیں؛ stdin موڑنا ایک جگاڑ ہے، اصل حل نہیں۔

One practice question a week

Get a new exam-style question with a clear explanation in your inbox. Free, no spam, unsubscribe any time.

We only use your email for these updates. See our privacy policy.