legacy-cli
legacy-cli copied to clipboard
Fix #1171: Autocompletion not working on Windows
Add quotes around the application executable before passing it to the autocomplete hook script.
Quoting prevents issues with the path when containing special characters (WS and/or \).
The fix might be
- this, or
- #1175 (using
--multipleand thus$1 _completionin the hook), and/or - https://github.com/stecman/symfony-console-completion/pull/92 (escaping the path and/or quoting the
$1)
Not sure what the --multiple option does. I read the description in the original command, but it's still unclear to me.
The --multiple appears to just change <path> _completion to $1 _completion so if you run platfoo <tab> Bash should be using platfoo as the command name, etc. Which seems convenient, if it works.
Thanks for the clarification 👍 Seems handy indeed.