Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Parameter Expansion
- X-seq: zsh-users 22820
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Parameter Expansion
- Date: Sun, 13 Aug 2017 17:07:46 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=PoI4PtcW/VuSTFBLx8YSCX9zRJCQFuVa+k1PVuL/5Yo=; b=VJcTdBJq4MwzmDjSkjhacnBE4cL4sPFWiO5aVWy8YL+IeqtqOfwaIzs7ieu+qTUz92 1t0aoD5NhYVs61bUbLg8Dp7iwMjv9Xzowg2YCcewMHGuDKTYgqkH9c90oBQnycIPSWlK mRR+SAXTB8Bwk4utgwpwl5hABSaU1ol1/Gw0QZ9t+/7KwKs2fuTLwLSp/XGG0c9TfCnJ tHoe2UfB9CKf9Civ/MFq1EXgFdF3aH8yk7ZzaZAoux9PP2qs4KTz33VXVeJ0390WG52C N/SfrVqVT9NWv4fxzn/WZqonXDfW6RUJ+AI2Hsw+C/OZ2LMKq93v11KJIOGWc7Yif9Ry 8t9Q==
- In-reply-to: <CAH+w=7aO6zWzXFk0ooHiw=4GS=LfQTsAKNa5unA8AOyajSB7sQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <8df905ca-2d0e-953d-aca1-e46337784ae4@rxv.me> <CAH+w=7aO6zWzXFk0ooHiw=4GS=LfQTsAKNa5unA8AOyajSB7sQ@mail.gmail.com>
On Sun, Aug 13, 2017 at 4:51 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> FUNCS=( $SD/autoload/*(:t) )
Oh, and if you want something more complicated, the above is
equivalent to using the "e" glob qualifier like so:
$SD/autoload/*(e?'reply=( "$REPLY:t" )'?)
So you can do any substitution tricks you want on $REPLY. Just
remember that it will contain exactly one filename at a time.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author