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 5606fc7 commit 756620cCopy full SHA for 756620c
src/CompletionHandler.php
@@ -355,9 +355,10 @@ public function generateBashCompletionHook($programName = null)
355
return <<<"END"
356
function $funcName {
357
export COMP_LINE COMP_POINT COMP_WORDBREAKS;
358
+ local RESULT STATUS;
359
360
RESULT=`$command _completion`;
- STATUS=$?;
361
+ STATUS=\$?;
362
363
if [ \$STATUS -ne 0 ]; then
364
echo \$RESULT;
@@ -394,4 +395,4 @@ public function addHandler(Completion $helper)
394
395
{
396
$this->helpers[] = $helper;
397
}
-}
398
+}
0 commit comments