diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-13 17:50:30 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-13 17:50:30 +0000 |
commit | 8746ae9979dc8cccef856300f14f6d98b4285d5a (patch) | |
tree | 21eb594cb028f825ad5583b0a56666b2e7a076dd /Completion/User/_mount | |
parent | ad92f962259d359e561d1c0f657f6a731739b3e1 (diff) | |
download | zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.gz zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.xz zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.zip |
zsh-workers/8231
Diffstat (limited to 'Completion/User/_mount')
-rw-r--r-- | Completion/User/_mount | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Completion/User/_mount b/Completion/User/_mount index 40bc3b4ea..579f24381 100644 --- a/Completion/User/_mount +++ b/Completion/User/_mount @@ -6,7 +6,7 @@ # are below these table. local state line ret=1 args fss deffs=iso9660 descr tmp -typeset -A options +typeset -A opt_args if (( ! $+_fs_any )); then @@ -233,30 +233,30 @@ fstype) compadd "$expl[@]" -qS, -M 'L:|no=' - "$fss[@]" && ret=0 ;; fsopt) - eval 'tmp=(' '"$_fs_'${(s:,:)^${options[-t]:-${deffs}}}'[@]"' ')' + eval 'tmp=(' '"$_fs_'${(s:,:)^${opt_args[-t]:-${deffs}}}'[@]"' ')' tmp=( "$_fs_any[@]" "${(@)tmp:#}" ) _values -s , 'file system options' "$tmp[@]" && ret=0 ;; devordir) - if (( $+options[-a] )); then + if (( $+opt_args[-a] )); then _message "no device or directory with option \`-a'" else _description expl device compadd "$expl[@]" /dev/* && ret=0 - if (( ! $+options[-t] )); then + if (( ! $+opt_args[-t] )); then _description expl 'mount point' _files "$expl[@]" -/ && ret=0 fi fi ;; udevordir) - if (( $+options[-a] )); then + if (( $+opt_args[-a] )); then _message "no device or directory with option \`-a'" else tmp=( "${(@f)$(< /etc/mtab)}" ) _description expl device compadd "$expl[@]" - "${(@)${(@)tmp%% *}:#none}" && ret=0 - if (( ! $+options[-t] )); then + if (( ! $+opt_args[-t] )); then _description expl 'mount point' compadd "$expl[@]" - "${(@)${(@)tmp#* }%% *}" fi |