Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Files modified after a given date



On Fri, Aug 27, 1999 at 10:43:47PM +0000, Bart Schaefer wrote:
# On Aug 27,  5:51pm, Gabor wrote:
# > Subject: Re: Files modified after a given date
# > === gabor $ builtin stat -H foo .zshrc
# > zsh: attempt to set slice of associative array
# 
# That's extremely strange.  What do you get in $foo if you use -A instead
# of -H ?  Are you sure you aren't loading a stat module that's from a
# different version/build of zsh?

Well, I figured it out.  I believe this to be a bug, though you
decide.  I always set ksharrays since I like 0 based indexing and use
ksh for scripting at work.  With ksharrays unset, it works.

=== gabor $ unsetopt ksharrays
=== gabor $ stat -H foo .
=== gabor $ print ${(kv)foo[@]}
blksize 8192 nlink 52 size 3072 rdev 533784 mode 16841 mtime 935797473
inode 127121 blocks 6 device 196614 atime 935797353 uid 1000 link
ctime 935797473 gid 1000
=== gabor $ setopt ksharrays
=== gabor $ stat -H foo .
zsh: attempt to set slice of associative array
zsh: exit 1
=== gabor $



Messages sorted by: Reverse Date, Date, Thread, Author