From d9e5ef02040d846a7b1ea1f7283f57152859bd6c Mon Sep 17 00:00:00 2001 From: Eric Cook Date: Mon, 19 Jul 2021 02:16:35 -0400 Subject: 49147: fix completion of linux kernel modules --- Completion/Linux/Command/_modutils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils index c62c6e7b6..1205f2506 100644 --- a/Completion/Linux/Command/_modutils +++ b/Completion/Linux/Command/_modutils @@ -132,7 +132,7 @@ _modutils() { _store_cache modules-$kver modules modaliases fi - if (( ${+opt_args[(k)(-R|--resolve-alias)]} )); then + if [[ -v opt_args[(i)(-R|--resolve-alias)] ]]; then _tags module-aliases else _tags files modules module-aliases -- cgit 1.4.1