mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 05:00:59 +01:00
25131: typo with b:zstat loading zstat
This commit is contained in:
parent
e6027db326
commit
a46bb7f49d
6 changed files with 13 additions and 5 deletions
|
|
@ -1,3 +1,11 @@
|
|||
2008-06-03 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 25131: Completion/Unix/Command/_chmod,
|
||||
Completion/Unix/Command/_chown, Completion/Unix/Command/_cvs,
|
||||
Completion/Unix/Type/_list_files,
|
||||
Completion/Zsh/Type/_file_descriptors: need b:zstat to
|
||||
get zstat with zmodload -F zsh/stat.
|
||||
|
||||
2008-06-02 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* users/12858: Doc/Zsh/compsys.yo: this bit didn't
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ case "$state" in
|
|||
;;
|
||||
files)
|
||||
if [[ -n $opt_args[--reference] ]]; then
|
||||
zmodload -F zsh/stat zstat 2>/dev/null
|
||||
zmodload -F zsh/stat b:zstat 2>/dev/null
|
||||
typeset -i8 ref=$(zstat +mode $opt_args[--reference])
|
||||
_wanted files expl file _files -g "*(-.^f${ref#??})" && ret=0
|
||||
elif [[ $words[2] = [0-7]## ]]; then
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ case $state in
|
|||
files)
|
||||
(( $+opt_args[-h] || $+opt_args[--no-dereference] )) || deref="-"
|
||||
if (( $+opt_args[--reference] )); then
|
||||
zmodload -F zsh/stat zstat 2>/dev/null
|
||||
zmodload -F zsh/stat b:zstat 2>/dev/null
|
||||
usr=$(zstat +uid $opt_args[--reference])
|
||||
grp=$(zstat +gid $opt_args[--reference])
|
||||
_wanted files expl file _files -g "*($deref^u$usr,$deref^g$grp)" && ret=0
|
||||
|
|
|
|||
|
|
@ -561,7 +561,7 @@ _cvs_watchers() {
|
|||
_cvs_loadstat() {
|
||||
(( $+_cvs_loadstat_status )) && return $_cvs_loadstat_status
|
||||
|
||||
zmodload -F zsh/stat zstat 2>/dev/null
|
||||
zmodload -F zsh/stat b:zstat 2>/dev/null
|
||||
(( _cvs_loadstat_status = ! $+builtins[zstat] ))
|
||||
return $_cvs_loadstat_status
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ done
|
|||
|
||||
(( ok )) || return 1
|
||||
|
||||
zmodload -F zsh/stat zstat 2>/dev/null || return 1
|
||||
zmodload -F zsh/stat b:zstat 2>/dev/null || return 1
|
||||
|
||||
dir=${2:+$2/}
|
||||
dir=${(Q)dir}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ for i in {0..9}; [[ -e /dev/fd/$i ]] && fds+=( $i )
|
|||
if zstyle -T ":completion:${curcontext}:" verbose && [[ -e /proc/$$/fd ]]; then
|
||||
zstyle -s ":completion:${curcontext}:" list-separator sep || sep=--
|
||||
|
||||
if zmodload -F zsh/stat zstat; then
|
||||
if zmodload -F zsh/stat b:zstat; then
|
||||
for i in "${fds[@]}"; do
|
||||
zstat +link -A link /proc/$$/fd/$i
|
||||
list+=( "$i $sep ${link[1]}" )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue