From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18380 invoked by alias); 29 Sep 2014 21:37:52 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33289 Received: (qmail 14034 invoked from network); 29 Sep 2014 21:37:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=I7PkGvk7pFNwmAViYtDjfaLp1OKEfIzpQZpBq6YAtQA=; b=DCFDeQvANkQqhL6i3lZbf3Q52JQaqOf6Ya7wGuUvY2ElCN7qxOJ3YYFx94019ug3dE SWfTF9Wcc+AQpztv2MLyk/nQJhJALhQvGfIoqGFDXXEYcJY7y5HcI6Yz03VKpjwnOAX4 CBcsGdQPh2K8pEELYjbKckxTSTaDjrp8vh4FCELapYHvoBsoTjHlRFos0SHEByg0y11N SETD7cykijf8fnxTdz6Mlow2xGa5gS0Pces2anW9Qpatd91mHxWW0Aq3DtUjLrEh+oxM GS6A0C3am+RmsOh5Hb+7O/NvYAxX4jaScff/u6PRc5Qv1VK7ImfHANbTwq/yzYUG1B5i ZY3Q== X-Gm-Message-State: ALoCoQne8x3rerGnvxt1tq2/hVv78/vxPxkMKHhylNLcWDMlM7PAWiGSO7PcVfED9CGIGTFDmaEM MIME-Version: 1.0 X-Received: by 10.180.24.226 with SMTP id x2mr7068623wif.1.1412026655972; Mon, 29 Sep 2014 14:37:35 -0700 (PDT) In-Reply-To: References: <20140929205236.2eb5e622@pws-pc.ntlworld.com> Date: Mon, 29 Sep 2014 14:37:35 -0700 Message-ID: Subject: Re: PATCH: functions with redirections From: Bart Schaefer To: Zsh hackers list Content-Type: multipart/alternative; boundary=f46d04428f543e577605043b1346 --f46d04428f543e577605043b1346 Content-Type: text/plain; charset=UTF-8 On Sep 29, 2014 1:53 PM, "Bart Schaefer" wrote: > > > On Sep 29, 2014 12:52 PM, "Peter Stephenson" 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. --f46d04428f543e577605043b1346--