Skip to content

bash: -H: command not found #6213

@bling-yshs

Description

@bling-yshs

Pre-submit Checks

Describe the bug

I copied an HTTP request as a cURL (bash) command from Chrome DevTools and pasted it into Warp's Git Bash.

curl 'https://docs.warp.dev/appearance/input-position?_rsc=1fkyr' \
  -H 'authority: docs.warp.dev' \
  -H 'accept: */*' \
  -H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8' \
  -H 'cookie: _vwo_uuid_v2=DCBA0983B026A1738FE3A87D3427D4EFA|1f635b2cafabd56ee06b1ce4d4df6067; _vwo_uuid=DCBA0983B026A1738FE3A87D3427D4EFA; rl_anonymous_id=RS_ENC_v3_IjQ5MWMwMTZjLTEyYWYtNDFiMS05OGU5LTdjMjY3MGVmZjJhMyI%3D; rl_page_init_referrer=RS_ENC_v3_Imh0dHBzOi8vZG9jcy53YXJwLmRldi9nZXR0aW5nLXN0YXJ0ZWQvZ2V0dGluZy1zdGFydGVkLXdpdGgtd2FycCI%3D; rl_page_init_referring_domain=RS_ENC_v3_ImRvY3Mud2FycC5kZXYi; _vis_opt_s=2%7C; _vwo_ds=3%3Aa_0%2Ct_0%3A0%241743129236%3A98.18737981%3A%3A%3A%3A0; _gcl_au=1.1.939506131.1743129239; _ga=GA1.1.1988410272.1743129239; _rdt_uuid=1739500762249.74d062d5-d97a-41e0-af4d-0cd0c6a3066a; rl_session=RS_ENC_v3_eyJpZCI6MTc0MzEyOTIzODMzNSwiZXhwaXJlc0F0IjoxNzQzMTMxNjU4NDE2LCJ0aW1lb3V0IjoxODAwMDAwLCJhdXRvVHJhY2siOnRydWUsInNlc3Npb25TdGFydCI6ZmFsc2V9; _ga_5NBFZJQ82M=GS1.1.1743129239.1.1.1743130777.0.0.0' \
  -H 'next-router-prefetch: 1' \
  -H 'next-router-state-tree: %5B%22%22%2C%7B%22children%22%3A%5B%22middleware%22%2C%7B%22children%22%3A%5B%22(site)%22%2C%7B%22children%22%3A%5B%22(content)%22%2C%7B%22children%22%3A%5B%5B%22pathname%22%2C%22getting-started%2Fusing-warp-with-shells%22%2C%22oc%22%5D%2C%7B%22children%22%3A%5B%22__PAGE__%3F%7B%5C%22pathname%5C%22%3A%5B%5C%22getting-started%5C%22%2C%5C%22using-warp-with-shells%5C%22%5D%7D%22%2C%7B%7D%2C%22%2Fgetting-started%2Fusing-warp-with-shells%23using-warp-with-shells-on-windows%22%2C%22refresh%22%5D%7D%5D%7D%5D%7D%2Cnull%2Cnull%2Ctrue%5D%7D%5D%7D%5D' \
  -H 'next-url: /middleware/getting-started/using-warp-with-shells' \
  -H 'referer: https://docs.warp.dev/getting-started/using-warp-with-shells' \
  -H 'rsc: 1' \
  -H 'sec-ch-ua: "Not=A?Brand";v="99", "Chromium";v="118"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Windows"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-origin' \
  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36' \
  --compressed

However, I got the following errors:

bash: -H: command not found  
bash: --compressed: command not found  

This command runs fine in other terminals.

To reproduce

Steps to Reproduce:

  1. Open Chrome DevTools (Press F12 or Ctrl + Shift + I).
  2. Go to the Network tab and capture an HTTP request.
  3. Right-click the request and select Copy > Copy as cURL (bash).
  4. Open Warp and launch Git Bash inside it.
  5. Paste the copied cURL command and press Enter.
  6. Observe the error messages:
    bash: -H: command not found  
    bash: --compressed: command not found  
    

Expected behavior

No response

Screenshots, videos, and logs

Image

Operating system (OS)

Windows

Operating system and version

win11

Shell Version

GNU bash, version 5.2.37(1)-release (x86_64-pc-msys)

Current Warp version

v0.2025.03.26.08.10.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authAuthentication, login, SSO, session management, and account security.area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.bugSomething isn't working.needs-infoMore issue-specific reporter detail is needed before the problem can be confidently triaged.os:windowsWindows-specific behavior, regressions, or requests.ready-to-implementThe issue is ready for implementation work.triagedIssue has received an initial automated triage pass.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions