Skip to content

Conversation

haristhohir
Copy link

@haristhohir haristhohir commented Jun 20, 2025

Here is my case:

curl -X POST https://example.com/api \
  -H "Content-Type: application/json" \
  -d '{
    "username": "name",
    "password": "pass",
    "details": {
      "age": 30,
      "location": "Earth"
    }
  }'

Using current release version i got:

curl -X POST https://example.com/api \\
  -H "Content-Type: application/json" \\
  -d '{\
    "username": "name",\
    "password": "pass",\
    "details": {\
      "age": 30,\
      "location": "Earth"\
    }\
  }'

and i test with echo \\ (#100 (comment)) it also works;

there is similar PR #2390, it only works on multiline with \ suffix, in my case i got:

curl -X POST https://example.com/api \
  -H "Content-Type: application/json" \
  -d '{\

Checks

  • I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle
  • I have checked that there are no existing pull requests for the same thing

@haristhohir haristhohir reopened this Jun 20, 2025
@haristhohir haristhohir changed the title Fix import zsh multiline issue Fix zsh multiline import issue Jun 20, 2025
@haristhohir haristhohir changed the title Fix zsh multiline import issue Fix zsh import multiline issue Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant