Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: foo(:...) and foo~ glob
- X-seq: zsh-workers 3930
- From: Andrew Main <zefram@xxxxxxxxx>
- To: schaefer@xxxxxxxxxxxxxxxx (Bart Schaefer)
- Subject: Re: foo(:...) and foo~ glob
- Date: Tue, 5 May 1998 09:53:22 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <980502152731.ZM28509@xxxxxxxxxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author