We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd3ec5 commit 69defa6Copy full SHA for 69defa6
src/Stecman/Component/Symfony/Console/BashCompletion/CompletionHandler.php
@@ -359,7 +359,15 @@ public function generateBashCompletionHook($programName)
359
return <<<"END"
360
function $funcName {
361
export COMP_CWORD COMP_KEY COMP_LINE COMP_POINT COMP_WORDBREAKS;
362
- COMPREPLY=(`compgen -W "$($command _completion)"`);
+
363
+ RESULT=`$command _completion`;
364
+ STATUS=$?;
365
+ if [ \$STATUS -ne 0 ]; then
366
+ echo \$RESULT;
367
+ exit $?;
368
+ fi;
369
370
+ COMPREPLY=(`compgen -W "\$RESULT"`);
371
};
372
complete -F $funcName $programName;
373
END;
0 commit comments