Title: zsh completion setup fails with 'parse error near elif' · Issue #3277 · pallets/click · GitHub
Open Graph Title: zsh completion setup fails with 'parse error near elif' · Issue #3277 · pallets/click
X Title: zsh completion setup fails with 'parse error near elif' · Issue #3277 · pallets/click
Description: When setting up zsh on the back of git for Windows bash shell, zsh throws a parse error when setting up autocomplete. Note: using this in a Python venv, but other aspects of the zsh command line are working. The zsh in use is the msys2 r...
Open Graph Description: When setting up zsh on the back of git for Windows bash shell, zsh throws a parse error when setting up autocomplete. Note: using this in a Python venv, but other aspects of the zsh command line ar...
X Description: When setting up zsh on the back of git for Windows bash shell, zsh throws a parse error when setting up autocomplete. Note: using this in a Python venv, but other aspects of the zsh command line ar...
Opengraph URL: https://github.com/pallets/click/issues/3277
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"zsh completion setup fails with 'parse error near elif'","articleBody":" When setting up zsh on the back of git for Windows bash shell, zsh throws a parse error when setting up autocomplete.\n \n Note: using this in a Python venv, but other aspects of the zsh command line are working.\n \n The zsh in use is the msys2 release: https://packages.msys2.org/packages/zsh?repo=msys\u0026variant=x86_64 \n \n ## Minimal Reproduction\n\n https://github.com/msaipraneeth/click-tuple-param\n \n Enable autocompletion: \n \n ```bash\n eval \"$(_TUPLE_PARAM_COMPLETE=zsh_source tuple-param)\" \n ``` \n \n```bash\nError: \n\n zsh: parse error near `elif' \n``` \n \n The command should register zsh completion without errors.\n\n Environment:\n\n - Python version: 3.11\n - Click version: 8.3.1\n","author":{"url":"https://github.com/msaipraneeth","@type":"Person","name":"msaipraneeth"},"datePublished":"2026-03-20T06:53:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/3277/click/issues/3277"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a69b4b05-6293-78bf-c022-ee1baa618a74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A70E:2B16CF:24B4A68:311942B:6A654803 |
| html-safe-nonce | 9c44966bbb64ddca438eb7572a6b21b5b47a927f38c12b1ad40c9f4f2a783c0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzBFOjJCMTZDRjoyNEI0QTY4OjMxMTk0MkI6NkE2NTQ4MDMiLCJ2aXNpdG9yX2lkIjoiMjQzNzU4OTQ1Nzc2NjI3MDk3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 160da4de8c695ed28e756875e4e0526cd7d8690c8f3df52ac8f1b25400fbd0ca |
| hovercard-subject-tag | issue:4106174423 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pallets/click/3277/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1ba359bb5368ffb9aaaa9773ae30385edc51621d62c3118f63b97b256898b70f/pallets/click/issues/3277 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1ba359bb5368ffb9aaaa9773ae30385edc51621d62c3118f63b97b256898b70f/pallets/click/issues/3277 |
| og:image:alt | When setting up zsh on the back of git for Windows bash shell, zsh throws a parse error when setting up autocomplete. Note: using this in a Python venv, but other aspects of the zsh command line ar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msaipraneeth |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| go-import | github.com/pallets/click git https://github.com/pallets/click.git |
| octolytics-dimension-user_id | 16748505 |
| octolytics-dimension-user_login | pallets |
| octolytics-dimension-repository_id | 19103692 |
| octolytics-dimension-repository_nwo | pallets/click |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 19103692 |
| octolytics-dimension-repository_network_root_nwo | pallets/click |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width