mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-13 11:21:13 +02:00
17542 (Thomas Stromberg): most systems don't have /etc/mnt
This commit is contained in:
parent
f948a8eb22
commit
660726b6ac
2 changed files with 11 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue