From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22212 invoked from network); 5 May 1998 08:52:59 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 5 May 1998 08:52:59 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id EAA16802; Tue, 5 May 1998 04:48:51 -0400 (EDT) Resent-Date: Tue, 5 May 1998 04:48:51 -0400 (EDT) From: Andrew Main Message-Id: <199805050848.JAA03893@taos.demon.co.uk> Subject: Re: foo(:...) and foo~ glob To: hzoli@cs.elte.hu (Zoltan Hidvegi) Date: Tue, 5 May 1998 09:48:54 +0100 (BST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <199805022027.PAA09387@hzoli.home> from "Zoltan Hidvegi" at May 2, 98 03:27:13 pm X-Loop: zefram@tao.co.uk X-Phase: The Moon is Waxing Gibbous (69% of Full) X-Stardate: [-30]1106.83 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: <"W754x1.0.T64.o9jJr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3929 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Zoltan Hidvegi wrote: >the (:quals) syntax no longer works. The idea was that foo(:...) should >not do globbing if there are no wildcard, but it should execute the >modifiers. It was always documented as working on names of existing files. It's useful functionality, of course, but... > This is very useful for general text manipulation. Of course >${${:-foo}:...} still works, but it's quite ugly. But this is more meaningful, and how often are you actually applying qualifiers to a literal string rather than a $ expansion? I'm trying to keep this as simple and orthogonal as possible. (:quals) is part of the glob syntax, and ${:quals} is part of the parameter expansion syntax. The latter is the proper syntax for manipulation arbitrary strings. >ls *~ >rm foo~ >dd if=~/foo of=bar > >etc. None of these work anymore. Good point. I'll change this back. -zefram