From 56fffd548203c3257d9fe05d75e36d8002b48bcc Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 31 May 2020 13:36:40 +0300 Subject: gitlab !14: modutils completion: Fix getting the value of kver from opt_args To get the _value_ of either of the options -S, -k or --set-version, the (i) subscript flag is not needed. --- Completion/Linux/Command/_modutils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Linux') diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils index ff6844f41..32cb49bd0 100644 --- a/Completion/Linux/Command/_modutils +++ b/Completion/Linux/Command/_modutils @@ -106,7 +106,7 @@ _modutils() { ;& all-modules) - local kver=${opt_args[(i)(-S|-k|--set-version)]:-$(uname -r)} + local kver=${opt_args[(-S|-k|--set-version)]:-$(uname -r)} if _cache_invalid modules-$kver || ! _retrieve_cache modules-$kver; then -- cgit 1.4.1