zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: zstat typo in completion
@ 2008-06-03  9:26 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2008-06-03  9:26 UTC (permalink / raw)
  To: Zsh hackers list

I can see how often these features get used...

Index: Completion/Unix/Command/_chmod
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_chmod,v
retrieving revision 1.4
diff -u -r1.4 _chmod
--- Completion/Unix/Command/_chmod	28 May 2007 22:57:39 -0000	1.4
+++ Completion/Unix/Command/_chmod	3 Jun 2008 09:25:54 -0000
@@ -54,7 +54,7 @@
   ;;
   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
Index: Completion/Unix/Command/_chown
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_chown,v
retrieving revision 1.11
diff -u -r1.11 _chown
--- Completion/Unix/Command/_chown	28 May 2007 22:57:39 -0000	1.11
+++ Completion/Unix/Command/_chown	3 Jun 2008 09:25:54 -0000
@@ -50,7 +50,7 @@
   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
Index: Completion/Unix/Command/_cvs
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_cvs,v
retrieving revision 1.29
diff -u -r1.29 _cvs
--- Completion/Unix/Command/_cvs	11 Jan 2008 21:06:29 -0000	1.29
+++ Completion/Unix/Command/_cvs	3 Jun 2008 09:25:55 -0000
@@ -561,7 +561,7 @@
 _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
 }
Index: Completion/Unix/Type/_list_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_list_files,v
retrieving revision 1.6
diff -u -r1.6 _list_files
--- Completion/Unix/Type/_list_files	28 May 2007 22:57:40 -0000	1.6
+++ Completion/Unix/Type/_list_files	3 Jun 2008 09:25:55 -0000
@@ -46,7 +46,7 @@
 
 (( 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}
Index: Completion/Zsh/Type/_file_descriptors
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Type/_file_descriptors,v
retrieving revision 1.5
diff -u -r1.5 _file_descriptors
--- Completion/Zsh/Type/_file_descriptors	28 May 2007 22:57:40 -0000	1.5
+++ Completion/Zsh/Type/_file_descriptors	3 Jun 2008 09:25:55 -0000
@@ -7,7 +7,7 @@
 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]}" )


-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-03  9:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-03  9:26 PATCH: zstat typo in completion Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).