mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-18 12:01:00 +01:00
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.
This commit is contained in:
parent
94e38548e3
commit
56fffd5482
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2020-06-01 Doron Behar <doron.behar@gmail.com>
|
||||
|
||||
* gitlab !14: Completion/Linux/Command/_modutils: modutils
|
||||
completion: Fix getting the value of kver from opt_args
|
||||
|
||||
2020-05-30 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 45915: Src/utils.c: fix handling of hyphens in spckword()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue