zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: syntax error with anonymous functions when an argument begins with (
Date: Mon, 8 Aug 2011 10:40:08 +0200	[thread overview]
Message-ID: <CAHYJk3RhqVA51aXTAHcf11D8o737D8_cwO9tkjbWkfLprDoumQ@mail.gmail.com> (raw)
In-Reply-To: <20110808093406.6982bdc9@pwslap01u.europe.root.pri>

On 8 August 2011 10:34, Peter Stephenson <Peter.Stephenson@csr.com> wrote:
> On Mon, 8 Aug 2011 06:29:01 +0200
> Mikael Magnusson <mikachu@gmail.com> wrote:
>> I actually had an anonymous function followed by 'done' in my .zshrc,
>> but when I tested the new zsh version there was no error since the
>> file was compiled. When I edited my .zshrc a week later though, zsh
>> reported errors on startup, which took me a couple of minutes to
>> figure out :). Is there a good reason to not stick on the
>> $ZSH_PATCHLEVEL on the version stored in .zwc files, assuming it's
>> stored as a string?
>
> What's supposed to happen is the version number of the wordcode gets
> incremented, but I always forget.  I suspect that having to recompile on
> everything committed to the archive would be too much, but as I don't
> rely on compiled files I'm really just guessing.

It doesn't really take that long to recompile everything, but I guess
it would be a bit annoying if you have long-running shells, as those
would refuse to use .zwc files after you update... And in this case it
wasn't that the wordcode was incompatible, just that my error got
postponed until something actually had to reparse the .zshrc file. So
I guess the current way is fine :).

-- 
Mikael Magnusson


  reply	other threads:[~2011-08-08  8:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-31 14:17 Jilles Tjoelker
2011-07-31 18:39 ` Peter Stephenson
2011-08-08  4:29   ` Mikael Magnusson
2011-08-08  8:34     ` Peter Stephenson
2011-08-08  8:40       ` Mikael Magnusson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-07-27 16:48 Mikael Magnusson
2011-07-27 19:22 ` Peter Stephenson

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=CAHYJk3RhqVA51aXTAHcf11D8o737D8_cwO9tkjbWkfLprDoumQ@mail.gmail.com \
    --to=mikachu@gmail.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).