about summary refs log tree commit diff
path: root/Functions/Example
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-06-02 17:52:10 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-06-02 17:52:10 +0000
commit4a1549e058ac25d7ea9d2821292eeb5a3eefdd55 (patch)
treef0315b44b2878bdf3e583a174324e6d95add4dc2 /Functions/Example
parent663fbdf4670a682c4c88e38c8eb695e919179513 (diff)
downloadzsh-4a1549e058ac25d7ea9d2821292eeb5a3eefdd55.tar.gz
zsh-4a1549e058ac25d7ea9d2821292eeb5a3eefdd55.tar.xz
zsh-4a1549e058ac25d7ea9d2821292eeb5a3eefdd55.zip
unposted: more uses of zstat
Diffstat (limited to 'Functions/Example')
-rw-r--r--Functions/Example/zls4
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Example/zls b/Functions/Example/zls
index 30a8fb9ed..f03ec0952 100644
--- a/Functions/Example/zls
+++ b/Functions/Example/zls
@@ -1,7 +1,7 @@
 # zls () {
 # simple internal ls using the stat module
 
-zmodload -i zsh/stat || return 1
+zmodload -F zsh/stat b:zstat || return 1
 
 emulate -R zsh
 setopt localoptions
@@ -49,7 +49,7 @@ fi
 
 for f in $*
 do
-    stat -s$L -H stat -F "%b %e %H:%M" - $f || continue
+    zstat -s$L -H stat -F "%b %e %H:%M" - $f || continue
     if [[ $opts != *d* && $stat[mode] == d* ]] then
 	dirs=( $dirs $f )
     elif [[ $opts == *l* ]] then