zsh-users
 help / color / mirror / code / Atom feed
* Segfault in zsh 4.2.5 in assignment to array variable tied to unset scalar.
@ 2005-08-19 21:47 John Reese
  2005-08-20  1:16 ` William Scott
  0 siblings, 1 reply; 3+ messages in thread
From: John Reese @ 2005-08-19 21:47 UTC (permalink / raw)
  To: zsh-users

Howdy.

ofb:3% zsh --version                                                14:40 ofb:~
zsh 4.2.5 (i686-pc-linux-gnu)
ofb:3% STRING=a:b                                                   14:40 ofb:~
ofb:3% typeset -T STRING string                                     14:40 ofb:~
ofb:3% unset STRING                                                 14:40 ofb:~
ofb:3% set -A string x y z                                          14:40 ofb:~
zsh: 18569 segmentation fault  zsh

I'm told this also happens in 4.2.1.


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

* Re: Segfault in zsh 4.2.5 in assignment to array variable tied to unset scalar.
  2005-08-19 21:47 Segfault in zsh 4.2.5 in assignment to array variable tied to unset scalar John Reese
@ 2005-08-20  1:16 ` William Scott
  2005-08-20  1:28   ` John Reese
  0 siblings, 1 reply; 3+ messages in thread
From: William Scott @ 2005-08-20  1:16 UTC (permalink / raw)
  To: John Reese; +Cc: zsh-users


I verified this on ubuntu linux and also OS X v. 10.4, 4.2.5 gives a seg
fault; 4.2.3 reports a bus error.

But why would you want to do this?

On Fri, 19 Aug 2005, John Reese wrote:

> Howdy.
>
> ofb:3% zsh --version                                                14:40 ofb:~
> zsh 4.2.5 (i686-pc-linux-gnu)
> ofb:3% STRING=a:b                                                   14:40 ofb:~
> ofb:3% typeset -T STRING string                                     14:40 ofb:~
> ofb:3% unset STRING                                                 14:40 ofb:~
> ofb:3% set -A string x y z                                          14:40 ofb:~
> zsh: 18569 segmentation fault  zsh
>
> I'm told this also happens in 4.2.1.
>


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

* Re: Segfault in zsh 4.2.5 in assignment to array variable tied to unset scalar.
  2005-08-20  1:16 ` William Scott
@ 2005-08-20  1:28   ` John Reese
  0 siblings, 0 replies; 3+ messages in thread
From: John Reese @ 2005-08-20  1:28 UTC (permalink / raw)
  To: zsh-users

Well, I don't "want" to do it.  It happened by accident.  I just think
that if one half of a tied pair is unset, the tie status on the
remaining variable should be removed.  And even if it should be an
error, there shouldn't be a segfault.

2005/8/19, William Scott <wgscott@chemistry.ucsc.edu>:
> 
> I verified this on ubuntu linux and also OS X v. 10.4, 4.2.5 gives a seg
> fault; 4.2.3 reports a bus error.
> 
> But why would you want to do this?
> 
> On Fri, 19 Aug 2005, John Reese wrote:
> 
> > Howdy.
> >
> > ofb:3% zsh --version                                                14:40 ofb:~
> > zsh 4.2.5 (i686-pc-linux-gnu)
> > ofb:3% STRING=a:b                                                   14:40 ofb:~
> > ofb:3% typeset -T STRING string                                     14:40 ofb:~
> > ofb:3% unset STRING                                                 14:40 ofb:~
> > ofb:3% set -A string x y z                                          14:40 ofb:~
> > zsh: 18569 segmentation fault  zsh
> >
> > I'm told this also happens in 4.2.1.
> >
>


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

end of thread, other threads:[~2005-08-20  1:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-19 21:47 Segfault in zsh 4.2.5 in assignment to array variable tied to unset scalar John Reese
2005-08-20  1:16 ` William Scott
2005-08-20  1:28   ` John Reese

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