about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-09-16 17:29:17 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-09-16 17:29:17 +0000
commit88adedc1d57d62b2203ada133b5507437227c594 (patch)
treef4aaa80f1026433413451ad77a8ab5fdb457ad5d /Completion/Unix
parentbb9a84d4c43cabee8ca1eb37b09eee03d5283ded (diff)
downloadzsh-88adedc1d57d62b2203ada133b5507437227c594.tar.gz
zsh-88adedc1d57d62b2203ada133b5507437227c594.tar.xz
zsh-88adedc1d57d62b2203ada133b5507437227c594.zip
17542: Thomas Stromberg: most systems don't have /etc/mtab
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_mount12
1 files changed, 6 insertions, 6 deletions
diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount
index f8bab52e8..e1f32f392 100644
--- a/Completion/Unix/Command/_mount
+++ b/Completion/Unix/Command/_mount
@@ -734,17 +734,17 @@ udevordir)
     local dev_tmp mp_tmp mline
 
     case "$OSTYPE" in
-    freebsd*)
+    linux*|irix*)
+      tmp=( "${(@f)$(< /etc/mtab)}" )
+      dev_tmp=( "${(@)${(@)tmp%% *}:#none}" )
+      mp_tmp=( "${(@)${(@)tmp#* }%% *}" )
+      ;;
+    *)
       /sbin/mount | while read mline; do
         dev_tmp=( $dev_tmp $mline[(w)1] )
         mp_tmp=( $mp_tmp $mline[(w)3] )
       done
       ;;
-    *)
-      tmp=( "${(@f)$(< /etc/mtab)}" )
-      dev_tmp=( "${(@)${(@)tmp%% *}:#none}" )
-      mp_tmp=( "${(@)${(@)tmp#* }%% *}" )
-      ;;
     esac
 
     _alternative \