zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: typeset -T crash
Date: Wed, 5 Aug 2015 17:35:23 -0700	[thread overview]
Message-ID: <150805173523.ZM21934@torch.brasslantern.com> (raw)
In-Reply-To: <CAHYJk3St=F+LS_5hyYkd8ZrSz-45XGhC-RiVvMpET+K6Z9s86Q@mail.gmail.com>

On Aug 5, 10:41pm, Mikael Magnusson wrote:
}
} Well, I suppose just checking tdp there works, but should we be
} getting there at all?

I suspect this is happening because getasg() always sets asg.is_array = 0,
then.  The only place is_array is assigned 1 is in execcmd() in the
postassigns block, and then only if there's a paren after the '='.

There isn't any other test based on the fetched param for whether the
first argument after -T is not scalar, as far as I can tell.


  reply	other threads:[~2015-08-06  0:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05 17:59 Mikael Magnusson
2015-08-05 20:04 ` Bart Schaefer
2015-08-05 20:41   ` Mikael Magnusson
2015-08-06  0:35     ` Bart Schaefer [this message]
2015-08-09 17:56 ` Peter Stephenson
2015-08-09 19:31   ` Mikael Magnusson

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=150805173523.ZM21934@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).