From: John Reese <john.reese@gmail.com>
To: zsh-users <zsh-users@sunsite.dk>
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 [thread overview]
Message-ID: <488030720508191828559c3131@mail.gmail.com> (raw)
In-Reply-To: <Pine.OSX.4.58.0508191814010.2909@vanunu.ucsc.edu>
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.
> >
>
prev parent reply other threads:[~2005-08-20 1:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-19 21:47 John Reese
2005-08-20 1:16 ` William Scott
2005-08-20 1:28 ` John Reese [this message]
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=488030720508191828559c3131@mail.gmail.com \
--to=john.reese@gmail.com \
--cc=zsh-users@sunsite.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).