Skip to content

Commit

Permalink
bug #47464 [Console] [Completion] Make zsh completion run in non inte…
Browse files Browse the repository at this point in the history
…ractive mode (Seldaek)

This PR was merged into the 6.2 branch.

Discussion
----------

[Console] [Completion] Make zsh completion run in non interactive mode

| Q             | A
| ------------- | ---
| Branch?       | 6.2
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Port #47394 to 6.2 for zsh

Commits
-------

4e5add4 [Console] [Completion] Make zsh completion run in non interactive mode
  • Loading branch information
fabpot committed Sep 2, 2022
2 parents 7e309f7 + 4e5add4 commit f885f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Resources/completion.zsh
Expand Up @@ -31,7 +31,7 @@ _sf_{{ COMMAND_NAME }}() {
fi

# Prepare the command to obtain completions
requestComp="${words[0]} ${words[1]} _complete -szsh -a{{ VERSION }} -c$((CURRENT-1))" i=""
requestComp="${words[0]} ${words[1]} _complete --no-interaction -szsh -a{{ VERSION }} -c$((CURRENT-1))" i=""
for w in ${words[@]}; do
w=$(printf -- '%b' "$w")
# remove quotes from typed values
Expand Down

0 comments on commit f885f8e

Please sign in to comment.