diff options
author | Oliver Kiddle <opk@zsh.org> | 2021-08-27 09:10:31 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2021-08-27 09:10:31 +0200 |
commit | b8d3787bac6aa6cde38b482155cc8f5c2778f7f5 (patch) | |
tree | 8cceaeaa1834e27f65c2b8cd0f0dfb4c901f3474 /Completion/Linux/Command/_losetup | |
parent | 5ef55de65ef6f9cac6297bc8c5f87c1a109cc7e1 (diff) | |
download | zsh-b8d3787bac6aa6cde38b482155cc8f5c2778f7f5.tar.gz zsh-b8d3787bac6aa6cde38b482155cc8f5c2778f7f5.tar.xz zsh-b8d3787bac6aa6cde38b482155cc8f5c2778f7f5.zip |
49306: fix file completion for the second parameter to losetup
Diffstat (limited to 'Completion/Linux/Command/_losetup')
-rw-r--r-- | Completion/Linux/Command/_losetup | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Linux/Command/_losetup b/Completion/Linux/Command/_losetup index 54debe19e..f5a7ec1b1 100644 --- a/Completion/Linux/Command/_losetup +++ b/Completion/Linux/Command/_losetup @@ -33,14 +33,15 @@ _arguments -s -S \ {-D,--detach-all}'[detach all associated loop devices]' \ - 'create' \ '--direct-io[open backing file with O_DIRECT]::enable:(on off)' \ - '(-f --find 2)'{-f,--find}'[find the first unused loop device]' \ + '(-f --find 1)'{-f,--find}'[find the first unused loop device]' \ '(-L --nooverlap)'{-L,--nooverlap}'[avoid possible conflict between devices]' \ '(-P --partscan)'{-P,--partscan}'[scan the partition table of newly created loop devices]' \ '--sizelimit[limit device to specified size]:size (bytes)' \ '(-b --sector-size)'{-b+,--sector-size=}'[set logical sector size of loop device]:size (bytes)' \ '--show[print device name after setup]' \ '(-r --read-only)'{-r,--read-only}'[set up a read-only loop device]' \ - '1:file:_files' \ + "(-f)$device" \ + '2:file:_files' \ - 'assoc' \ '(-j --associated)'{-j,--associated}'[show the status of all loop devices associated with an file]:associated file:_files' \ "(-f)$device" |