Skip to content

Commit 3f17fdd

Browse files
committed
Fix shell terminating when an error occurs during completion
The shell asking for completion was exiting when PHP exited with a non-zero status. This was due to `exit` being use instead of `return` in the context of a BASH function. This made it quite frustrating to develop the module, so I'm glad this is now fixed.
1 parent 17824f6 commit 3f17fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Stecman/Component/Symfony/Console/BashCompletion/CompletionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ function $funcName {
394394
STATUS=$?;
395395
if [ \$STATUS -ne 0 ]; then
396396
echo \$RESULT;
397-
exit $?;
397+
return \$?;
398398
fi;
399399
400400
local cur;

0 commit comments

Comments
 (0)