zsh-users
 help / color / mirror / code / Atom feed
From: Gabor <gabor@vmunix.com>
To: Bart Schaefer <schaefer@candle.brasslantern.com>,
	zsh-users@sunsite.auc.dk
Subject: Re: Files modified after a given date
Date: Fri, 27 Aug 1999 19:44:19 -0400	[thread overview]
Message-ID: <19990827194419.A7511@vmunix.com> (raw)
In-Reply-To: <990827224347.ZM28594@candle.brasslantern.com>; from Bart Schaefer on Fri, Aug 27, 1999 at 10:43:47PM +0000

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 $


  reply	other threads:[~1999-08-27 23:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-23  8:09 Sven Wischnowsky
1999-08-27 21:51 ` Gabor
1999-08-27 22:09   ` Bruce Stephens
1999-08-27 22:43   ` Bart Schaefer
1999-08-27 23:44     ` Gabor [this message]
1999-08-28  5:00       ` PATCH: ksharrays and assoc array assignments (was Re: Files modified after a given date) Bart Schaefer
1999-08-28 17:14         ` Gabor
  -- strict thread matches above, loose matches on Subject: below --
1999-08-22 16:31 Files modified after a given date Vincent Lefevre
1999-08-22 16:44 ` Bruce Stephens
1999-08-22 17:17   ` Vincent Lefevre
1999-08-22 18:55     ` Bruce Stephens
1999-08-22 19:26       ` Vincent Lefevre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19990827194419.A7511@vmunix.com \
    --to=gabor@vmunix.com \
    --cc=schaefer@candle.brasslantern.com \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).