Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Segfault in zsh 4.2.5 in assignment to array variable tied to unset scalar.
- X-seq: zsh-users 9333
- From: John Reese <john.reese@xxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: Segfault in zsh 4.2.5 in assignment to array variable tied to unset scalar.
- Date: Fri, 19 Aug 2005 18:28:44 -0700
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VEyjMEWEo1hcEeXa/GCrZC3/dB9JkGmjvjiv/7MIPV4HVi0wnU7bUUeUcQ9+De9hekchCODVVRqr2G8wO4rwhqUF+JEPwN0CKTeDKUuX8JQzZc3dvPIY163ucc4BH1I/eJosKD4twgD2bj7bZS3I3tUbidEQrD2GHdzZskuMH0A=
- In-reply-to: <Pine.OSX.4.58.0508191814010.2909@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <48803072050819144774459984@xxxxxxxxxxxxxx> <Pine.OSX.4.58.0508191814010.2909@xxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxx>:
>
> 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.
> >
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author