zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <Peter.Stephenson@csr.com>
To: zsh-workers@zsh.org
Cc: Martin Buchholz <martinrb@google.com>, Joel Ebel <jbebel@google.com>
Subject: Re: zsh ignores the arguments on its first command.
Date: Thu, 3 Jun 2010 15:20:55 +0100	[thread overview]
Message-ID: <20100603152055.70332aec@csr.com> (raw)
In-Reply-To: <AANLkTilKAcVt2Dfl_cnZg5dpe6zXOPlPZeC5rdgdLJWs@mail.gmail.com>

On Thu, 3 Jun 2010 07:15:59 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> Martin has something of a point in that when getparamnode() calls
> zerr() for this, the shell behaves somewhat as if ${terminfo?} had
> been used rather than ${+terminfo}.
> 
> Perhaps the correct thing here is to change this to a zwarn() and
> allow the setting of the UNSET option to control whether autoload
> failure aborts the script.  I'm not convinced that's right, either,
> though.

Yes, as you'll see from the comment just above the code I changed, I had
upgraded it from a warning to an error, since it doesn't mean "the shell
programmer didn't get around to setting this variable" it means "something
nasty happened such that this variable that you were expecting to implement
special behaviour is never going to do what you expect".  I think that's a
hard(er) error.

-- 
Peter Stephenson <pws@csr.com>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom


      reply	other threads:[~2010-06-03 15:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-01 21:23 Martin Buchholz
2010-06-01 21:45 ` Peter Stephenson
2010-06-01 22:27   ` Martin Buchholz
2010-06-02  7:05   ` Martin Buchholz
2010-06-02 11:19     ` Peter Stephenson
2010-06-02 16:44       ` Martin Buchholz
2010-06-03  9:01         ` Peter Stephenson
2010-06-03 13:22           ` Martin Buchholz
2010-06-03 13:32             ` Peter Stephenson
2010-06-03 13:47               ` Martin Buchholz
2010-06-03 14:15               ` Bart Schaefer
2010-06-03 14:20                 ` Peter Stephenson [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=20100603152055.70332aec@csr.com \
    --to=peter.stephenson@csr.com \
    --cc=jbebel@google.com \
    --cc=martinrb@google.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).