Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: syntax error with anonymous functions when an argument begins with (

On 8 August 2011 10:34, Peter Stephenson <Peter.Stephenson@xxxxxxx> wrote:
> On Mon, 8 Aug 2011 06:29:01 +0200
> Mikael Magnusson <mikachu@xxxxxxxxx> 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

Messages sorted by: Reverse Date, Date, Thread, Author