diff options
author | Oliver Kiddle <opk@zsh.org> | 2023-09-26 23:08:54 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2023-10-11 01:06:50 +0200 |
commit | 70320635b4b50b1e84f70e17bf40f107d140bdcf (patch) | |
tree | 1cc25c768b07ea9fe565c3aac15b45f5fcdff6bb /Completion | |
parent | 985952e2f616c816e24c4cf5aee70416e4f23e07 (diff) | |
download | zsh-70320635b4b50b1e84f70e17bf40f107d140bdcf.tar.gz zsh-70320635b4b50b1e84f70e17bf40f107d140bdcf.tar.xz zsh-70320635b4b50b1e84f70e17bf40f107d140bdcf.zip |
52189: ignore compadd -M if -U also specified as they don't make sense together
This fixes df completion.
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Type/_umountable | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_umountable b/Completion/Unix/Type/_umountable index 6e4988e2d..0111555b6 100644 --- a/Completion/Unix/Type/_umountable +++ b/Completion/Unix/Type/_umountable @@ -1,6 +1,6 @@ #autoload local tmp -local dev_tmp dpath_tmp mp_tmp mline +local -a dev_tmp dpath_tmp mp_tmp mline case "$OSTYPE" in linux*) @@ -15,6 +15,7 @@ irix*) ;; freebsd*|dragonfly*) /sbin/mount | while read mline; do + [[ $mline[(w)1] = map ]] && continue dev_tmp+=( $mline[(w)1] ) mp_tmp+=( $mline[(w)3] ) done |