From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22261 invoked from network); 5 May 1998 08:57:09 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 5 May 1998 08:57:09 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id EAA16919; Tue, 5 May 1998 04:53:13 -0400 (EDT) Resent-Date: Tue, 5 May 1998 04:53:13 -0400 (EDT) From: Andrew Main Message-Id: <199805050853.JAA04064@taos.demon.co.uk> Subject: Re: foo(:...) and foo~ glob To: schaefer@brasslantern.com (Bart Schaefer) Date: Tue, 5 May 1998 09:53:22 +0100 (BST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <980502152731.ZM28509@candle.brasslantern.com> from "Bart Schaefer" at May 2, 98 03:27:31 pm X-Loop: zefram@tao.co.uk X-Phase: The Moon is Waxing Gibbous (69% of Full) X-Stardate: [-30]1106.85 X-US-Congress: moronic fuckers X-Headers: OTT X-Mouse: +++ ????? +++ Out Of Cheese Error. Redo From Start. X-Parrot: no, it's only resting. X-Personality: INTJ X-email-is-not-HTML: X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"DIlFb2.0.I84.uDjJr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3930 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Bart Schaefer wrote: >Does this also mean that either/both of the following are broken? > > echo ${pref}**/CVS(:h) | sed 's/CVS//' > > case $(tty)(:t) in Those should still work, since you're dealing with actual filenames. In the first case, you're globbing in either zsh version. The second one would be more efficient as "${TTY:t}" in either version. >I'd be somewhat discomfited by that. What was the rationale for changing >that behavior, again? Simplification -- parens trigger globbing. The only casualty is the `foo(:mods)' syntax, where `foo' is not a filename. We gain the ability to do `foo(.)' etc. >} ls *~ >} rm foo~ >} dd if=~/foo of=bar > >That loss is quite unpleasant. I add my vote for fixing or backing out >that particular change. Agreed. -zefram