From: Andrew Main <zefram@tao.co.uk>
To: schaefer@brasslantern.com (Bart Schaefer)
Cc: zsh-workers@math.gatech.edu
Subject: Re: foo(:...) and foo~ glob
Date: Tue, 5 May 1998 09:53:22 +0100 (BST) [thread overview]
Message-ID: <199805050853.JAA04064@taos.demon.co.uk> (raw)
In-Reply-To: <980502152731.ZM28509@candle.brasslantern.com> from "Bart Schaefer" at May 2, 98 03:27:31 pm
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
next prev parent reply other threads:[~1998-05-05 8:57 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 [this message]
1998-05-05 8:48 ` Andrew Main
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=199805050853.JAA04064@taos.demon.co.uk \
--to=zefram@tao.co.uk \
--cc=schaefer@brasslantern.com \
--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).