From 9d797000b1a39154cd93b86fab18f86b1ed90f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Vieilledent?= Date: Wed, 26 Oct 2022 10:09:57 +0200 Subject: [PATCH] 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 `\`). --- src/Command/Self/SelfInstallCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/Self/SelfInstallCommand.php b/src/Command/Self/SelfInstallCommand.php index b61ff601c3..a29c77083c 100644 --- a/src/Command/Self/SelfInstallCommand.php +++ b/src/Command/Self/SelfInstallCommand.php @@ -102,7 +102,7 @@ protected function execute(InputInterface $input, OutputInterface $output) try { $args = [ '--generate-hook' => true, - '--program' => $this->config()->get('application.executable'), + '--program' => '"' . $this->config()->get('application.executable') . '"', ]; if ($shellType) { $args['--shell-type'] = $shellType;