From 660726b6ac79b5866a29ec6aa5e46f4c1999f36d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 14 Aug 2002 10:31:34 +0000 Subject: 17542 (Thomas Stromberg): most systems don't have /etc/mnt --- Completion/Unix/Command/_mount | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Completion/Unix/Command/_mount') diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount index 8fddc4e6f..289f605a2 100644 --- a/Completion/Unix/Command/_mount +++ b/Completion/Unix/Command/_mount @@ -748,17 +748,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 \ -- cgit 1.4.1