From: Andrew Main <zefram@tao.co.uk>
To: hzoli@cs.elte.hu (Zoltan Hidvegi)
Cc: zsh-workers@math.gatech.edu
Subject: Re: foo(:...) and foo~ glob
Date: Tue, 5 May 1998 09:48:54 +0100 (BST) [thread overview]
Message-ID: <199805050848.JAA03893@taos.demon.co.uk> (raw)
In-Reply-To: <199805022027.PAA09387@hzoli.home> from "Zoltan Hidvegi" at May 2, 98 03:27:13 pm
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
prev parent reply other threads:[~1998-05-05 8:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-02 20:27 Zoltan Hidvegi
1998-05-02 22:27 ` Bart Schaefer
1998-05-03 3:22 ` Zoltan Hidvegi
1998-05-05 8:53 ` Andrew Main
1998-05-05 8:48 ` Andrew Main [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199805050848.JAA03893@taos.demon.co.uk \
--to=zefram@tao.co.uk \
--cc=hzoli@cs.elte.hu \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).