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. --- ChangeLog | 5 +++++ Completion/Linux/Command/_modutils | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 773e5b64d..b1d58021b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-06-01 Doron Behar + + * gitlab !14: Completion/Linux/Command/_modutils: modutils + completion: Fix getting the value of kver from opt_args + 2020-05-30 Bart Schaefer * 45915: Src/utils.c: fix handling of hyphens in spckword() 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 v1.2.3