zsh-workers
 help / color / mirror / code / Atom feed
* array bug
@ 1999-11-14  2:45 Dave Gaulke
  1999-11-14 17:09 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Gaulke @ 1999-11-14  2:45 UTC (permalink / raw)
  To: zsh-workers

I found a problem with arrays used inside a function.  I'm running zsh 3.1.6
on Solaris 2.6.  Here's a function that demonstrates the problem.

function arrtest
{
	set -A myarray
	typeset -x myarray
	myarray[1]=arrtest
	print ${myarray[1]}
}

When I run this it prints only "a" and not the expected "arrtest".  If I run
this outside of a function it works properly.  Also if I reverse the order of
the first two lines of the function it works properly.

Dave
-- 
+----------------------------------------------------+
|   Dave Gaulke           email: gaulke@lucent.com   |
|   Lucent Technologies   voice: 303.538.5168        |
|   11900 N. Pecos St.      fax: 303.538.6697        |
|   Denver, CO  80234                                |
+----------------------------------------------------+


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-11-14 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-14  2:45 array bug Dave Gaulke
1999-11-14 17:09 ` Bart Schaefer

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).