From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id GAA09990 for ; Wed, 3 Jul 1996 06:03:37 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id PAA02329; Tue, 2 Jul 1996 15:55:33 -0400 (EDT) Resent-Date: Tue, 2 Jul 1996 15:55:33 -0400 (EDT) From: Anthony Heading Message-Id: <199607021953.UAA05899@et-sun4.uk.jpmorgan.com> Subject: Re: Tag functions with shell options? To: schaefer@nbn.com Date: Tue, 2 Jul 1996 20:53:37 +0100 (BST) Cc: aheading@jpmorgan.com, pws@ifh.de, A.Main@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu In-Reply-To: <960702120736.ZM4601@candle.brasslantern.com> from "Bart Schaefer" at Jul 2, 96 12:07:32 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"MfJen3.0.Ga.qwNsn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1514 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > Right; it doesn't seem that Anthony has given us enough context. Do > the functions get defined and then executed all within /etc/profile, > for example? Or do they act as wrappers around actual applications, > so they don't run until you execute them "manually"? (Sounds like the > latter, but ...) Yes, the latter. The lack of context was sort-of deliberate, since I suspected any interest would be in the wider picture, rather than my particular petty problems. It seemed simply an example of something it would be nice to support elegantly. > it seems to me that a much simpler implementation of sws_fn is: [wrapping the function, and then aliasing the wrapper to the original] > The only drawback to this is that other functions that may already have > been defined won't see the alias -- but presumably those functions will > themselves be given the sws_fn treatment, so it's moot. Hmm. Don't understand the first point, but I'll experiment. Thanks Anthony