From 687c50bdf999f8efd45f3c8f578a62329b0633da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Wed, 30 Oct 2019 23:12:45 +0100 Subject: [PATCH] fabric: fix awk "return not in function" error in completion Fixes #8337 --- plugins/fabric/_fab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/fabric/_fab b/plugins/fabric/_fab index 89e73e58b..9102dadef 100644 --- a/plugins/fabric/_fab +++ b/plugins/fabric/_fab @@ -6,7 +6,7 @@ declare -A opt_args declare -a target_list target_list=("${(@f)$(fab -l 2>/dev/null | awk '{ - if (NF == 0 || NR == 1) return + if (NF == 0 || NR == 1) next if (NF < 2) print $1 else { docstring=substr($0, index($0,$2))