generated zsh completion fails when source <()
'd
#3508
Labels
A-completion
Area: completion generator
C-bug
Category: Updating dependencies
E-easy
Call for participation: Experience needed to fix: Easy / not much
Please complete the following tasks
Rust Version
rustc 1.58.1 (db9d1b20b 2022-01-20)
Clap Version
3.1.2
Minimal reproducible code
Steps to reproduce the bug with the above code
source <(cargo run -- comp --shell zsh)
Actual Behaviour
errors out and the completion does not work with the binary afterwards
error:
Expected Behaviour
should source the completion and from thereon complete the execution
Additional Context
An almost minimal, reproducible example can be checked out at https://github.com/drahnr/clap-completion-zoink
Encountered in the wild on https://github.com/soywod/himalaya and reported as volta-cli/volta#496
Debug Output
No response
The text was updated successfully, but these errors were encountered: