From: Marc Chantreux <marc.chantreux@ulpmm.u-strasbg.fr>
To: zsh-users@sunsite.dk
Subject: Re: golf : $~pattern:t ?
Date: Thu, 22 Dec 2005 10:47:54 +0100 [thread overview]
Message-ID: <43AA764A.90400@ulpmm.u-strasbg.fr> (raw)
In-Reply-To: <1051222043638.ZM21139@candle.brasslantern.com>
Bart Schaefer a écrit :
>On Dec 21, 9:13pm, Marc Chantreux wrote:
>}
>} files=( $~pattern )
>} files=( $files:t )
>
>Should work to do
>
> files=( $~pattern(:t) )
>
>That is, use :t as a glob qualifier rather than as a parameter suffix.
>
>
I've tried it but it failed so thought that i misunderstood the man ...
thanks for you, i understood that it was a $pattern specific error.
in fact, my pattern was :
/home/mc/src/2z/expo/*(jpeg|jpg|png|JPEG|JPG|PNG)(N)
so the complete one :
/home/mc/src/2z/expo/*(jpeg|jpg|png|JPEG|JPG|PNG)(N)(:t)
must be :
/home/mc/src/2z/expo/*(jpeg|jpg|png|JPEG|JPG|PNG)(N:t)
thanks!
regards
mc
prev parent reply other threads:[~2005-12-22 9:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-21 20:13 Marc Chantreux
2005-12-22 4:36 ` Bart Schaefer
2005-12-22 9:47 ` Marc Chantreux [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=43AA764A.90400@ulpmm.u-strasbg.fr \
--to=marc.chantreux@ulpmm.u-strasbg.fr \
--cc=zsh-users@sunsite.dk \
/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).