1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

unposted: more uses of zstat

This commit is contained in:
Peter Stephenson 2007-06-02 17:52:10 +00:00
parent 663fbdf467
commit 4a1549e058
3 changed files with 10 additions and 21 deletions

View file

@ -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