From 70320635b4b50b1e84f70e17bf40f107d140bdcf Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 26 Sep 2023 23:08:54 +0200 Subject: 52189: ignore compadd -M if -U also specified as they don't make sense together This fixes df completion. --- Completion/Unix/Type/_umountable | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Completion/Unix') 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 -- cgit 1.4.1