Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: functions with redirections
- X-seq: zsh-workers 33289
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: functions with redirections
- Date: Mon, 29 Sep 2014 14:37:35 -0700
- In-reply-to: <CAH+w=7ZzHKOQd8LCvdC+1gpCthb4Xd6t_8f9SjiXMssy=Vmn_g@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20140929205236.2eb5e622@pws-pc.ntlworld.com> <CAH+w=7ZzHKOQd8LCvdC+1gpCthb4Xd6t_8f9SjiXMssy=Vmn_g@mail.gmail.com>
On Sep 29, 2014 1:53 PM, "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
>
> On Sep 29, 2014 12:52 PM, "Peter Stephenson" <p.w.stephenson@xxxxxxxxxxxx>
wrote:
> >
> > I haven't yet looked at dump files. That's partly becuase I don't
> > understand them and partly because I don't use them. Any hints would be
> > great.
>
> By dump files do you mean zcompile?
> I fear I'm not of much help there.
A thought:
My first idea when this came up was to alter the wordcode for functions
with redirections to explicitly add the implicit set of braces, e.g.,
foo () { echo foo } >&3
becomes
foo () { { echo foo } >&3 }
Then it would not be necessary to mess with printing/dumping etc. of the
definition, or invent a new place to store the redirections. Yeah, output
of "functions" et al. becomes a little less faithful but so what?
Sadly I never managed to make that work, but maybe the concept is helpful
for dump file creation.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author