Skip to content

Commit 6f22632

Browse files
committed
fix(_comp_compgen_help): work around nounset
1 parent 8d4e04f commit 6f22632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bash_completion

+2-2
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ _comp_compgen_help()
12431243
_comp_dequote "$cmd" && LC_ALL=C "$ret" "${opt[@]}" 2>&1
12441244
;;
12451245
esac
1246-
)"
1246+
)" || return 1
12471247

12481248
local -a _options=()
12491249
local _line
@@ -1287,7 +1287,7 @@ _comp_compgen_usage()
12871287
_comp_dequote "$cmd" && LC_ALL=C "$ret" "${opt[@]}" 2>&1
12881288
;;
12891289
esac
1290-
)"
1290+
)" || return 1
12911291

12921292
local -a _options=()
12931293
local _line _match _option _i _char

0 commit comments

Comments
 (0)