summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_mount
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2005-06-08 12:45:24 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2005-06-08 12:45:24 +0000
commit0ba8ae87eac21281e0b17eb9cbb523d133067a4a (patch)
tree614cc49ce90c3c2562f83d6739f8ea76dc75d7f0 /Completion/Unix/Command/_mount
parent9181f0e3059862d2d8cc109bc849f8705cbbc23c (diff)
downloadzsh-0ba8ae87eac21281e0b17eb9cbb523d133067a4a.tar.gz
zsh-0ba8ae87eac21281e0b17eb9cbb523d133067a4a.zip
21315: make completion functions give precendence to descriptions passed as
parameters and cleanup descriptons in calling functions
Diffstat (limited to 'Completion/Unix/Command/_mount')
-rw-r--r--Completion/Unix/Command/_mount22
1 files changed, 11 insertions, 11 deletions
diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount
index d905664c7..f19da0869 100644
--- a/Completion/Unix/Command/_mount
+++ b/Completion/Unix/Command/_mount
@@ -24,8 +24,8 @@ if [[ "$OSTYPE" == cygwin ]]; then
local -a wpaths upaths
mount | while read -r line; do
[[ $line == ?:\ * ]] && continue
- wpaths=($wpaths ${line%% on*})
- upaths=($upaths ${${line##*on }%% type*})
+ wpaths+=( ${line%% on*} )
+ upaths+=( ${${line##*on }%% type*} )
done
_alternative \
'windowspath:Windows path:compadd -a wpaths' \
@@ -552,10 +552,10 @@ if [[ "$service" = mount ]]; then
irix*)
args=( -s
'-a[mount all filesystems in /etc/fstab]'
- '-b[mount all filesystems in /etc/fstab except those listed]:list of directories:_dir_list -s,'
+ '-b[mount all filesystems in /etc/fstab except those listed]:mount point:_dir_list -s,'
'-c[check any dirty filesystems before mounting]'
"-f[fake a new /etc/mtab entry, but don't mount any filesystems]"
- '-h[mount all filesystems associated with host]:hostnames:_hosts'
+ '-h[mount all filesystems associated with host]:host:_hosts'
'-n[mount filesystem without making entry in /etc/mtab]'
'-o[specify file system options]:file system option:->fsopt'
'-p[print list of mounted filesystems in format suitable for /etc/fstab]'
@@ -681,8 +681,8 @@ else
irix*)
args=(
'-a[unmount all mounted file systems]'
- '-b[unmount all filesystems in /etc/fstab except those listed]:list of directories:_dir_list -s,'
- '-h[unmount all filesystems associated with host]:hostnames:_hosts'
+ '-b[unmount all filesystems in /etc/fstab except those listed]:mount point:_dir_list -s,'
+ '-h[unmount all filesystems associated with host]:host:_hosts'
'-k[kill all processes with files open on filesystems before unmounting]'
'-t[unmount all filesystems of specified type]:file system type:_file_systems'
'-v[verbose]'
@@ -709,7 +709,7 @@ else
'(*)-a[unmount all mounted file systems]'
'-A[unmount all mounted file systems except the root]'
'-f[force unmount]'
- '-h[unmount all filesystems associated with host]:hostnames:_hosts'
+ '-h[unmount all filesystems associated with host]:host:_hosts'
'-t[unmount all filesystems of specified type]:file system type:->fslist'
'-v[verbose mode]'
'*:dev or dir:->udevordir'
@@ -775,8 +775,8 @@ devordir)
;;
*)
[[ $mline[(w)3] == swap ]] || \
- dev_tmp=( $dev_tmp $mline[(w)1] ) \
- mp_tmp=( $mp_tmp $mline[(w)2] )
+ dev_tmp+=( $mline[(w)1] ) \
+ mp_tmp+=( $mline[(w)2] )
;;
esac
done < /etc/fstab
@@ -808,8 +808,8 @@ udevordir)
;;
*)
/sbin/mount | while read mline; do
- mp_tmp=( $mp_tmp $mline[(w)1] )
- dev_tmp=( $dev_tmp $mline[(w)3] )
+ mp_tmp+=( $mline[(w)1] )
+ dev_tmp+=( $mline[(w)3] )
done
;;
esac