diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2002-08-14 10:31:34 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2002-08-14 10:31:34 +0000 |
commit | 660726b6ac79b5866a29ec6aa5e46f4c1999f36d (patch) | |
tree | f069a3f02e49712991419bae638809bf47389194 | |
parent | f948a8eb22e9d95e76c5cc99ceb232a1c0a2ef1e (diff) | |
download | zsh-660726b6ac79b5866a29ec6aa5e46f4c1999f36d.tar.gz zsh-660726b6ac79b5866a29ec6aa5e46f4c1999f36d.tar.xz zsh-660726b6ac79b5866a29ec6aa5e46f4c1999f36d.zip |
17542 (Thomas Stromberg): most systems don't have /etc/mnt
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_mount | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index 759a36f37..96484ee20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-08-14 Peter Stephenson <pws@csr.com> + + * 17542 (Thomas Stromberg <thomas@stromberg.org>): + Completion/Unix/Command/_mount: most systems don't have /etc/mnt. + 2002-08-12 Peter Stephenson <pws@csr.com> * 17482 (Karl Tomlinson): Src/Modules/termcap.c, 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 \ |