From: Andrew Main <zefram@tao.co.uk>
To: talley@boulder.Central.Sun.COM (Steve Talley)
Cc: zsh-users@math.gatech.edu
Subject: Re: foo.bar(:r) doesn't work
Date: Wed, 15 Apr 1998 09:30:40 +0100 (BST) [thread overview]
Message-ID: <199804150830.JAA06021@taos.demon.co.uk> (raw)
In-Reply-To: <199804142334.RAA01241@ipecac.Central.Sun.COM> from "Steve Talley" at Apr 14, 98 05:34:30 pm
Steve Talley wrote:
>In zsh-3.1.2, "echo foo.bar(:r)" prints out "foo", whether foo.bar
>exists or not. In 3.1.2-zefram4, I get the error "zsh: no match" when
>foo.bar doesn't exist.
This form was always documented as working only on the names of existing
files. In prior versions there was special-case code to allow modifiers
to be applied to any string without performing globbing, but in the
glob changes for 3.1.2-zefram4 I simplified things a bit by making this
actually invoke globbing. A side effect is that things like "foo(M)"
now work as expected.
You can get the effect you want -- applying modifiers to an arbitrary
string -- via parameter expansion: "echo ${${:-foo.bar}:r}" has always
been the correct way to do this.
-zefram
prev parent reply other threads:[~1998-04-15 8:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-14 23:34 Steve Talley
1998-04-15 8:30 ` 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=199804150830.JAA06021@taos.demon.co.uk \
--to=zefram@tao.co.uk \
--cc=talley@boulder.Central.Sun.COM \
--cc=zsh-users@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).