From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: is text file?
Date: Mon, 29 Sep 1997 12:25:21 +0200 [thread overview]
Message-ID: <199709291025.MAA06202@sgi.ifh.de> (raw)
In-Reply-To: ""Bart Schaefer""'s message of "Sun, 28 Sep 1997 17:06:07 MET." <970928170607.ZM7789@candle.brasslantern.com>
"Bart Schaefer" wrote:
> % ls **/*~*(${~${(j/|/)fignore}})(.)
>
> (Somebody tell me why the extra ${~...} is needed in that expression.)
The `|' needs to be tokenised. Otherwise, it looks for the pattern
'.o|~|.pro|.dvi' or whatever as a literal file name. Since the string
required by j is just that, a string not a pattern, it is untokenised
when used to join the array.
Or do you mean, why can't I put the ~ in the same ${...}, in which case,
at least in 3.0.5 and 3.1.2, I think you can.
% echo *(${(j/|/)~fignore})
Makefile~ builtin.c~ builtin.o ...
I think Zoltan has recently updated the substitution code, though.
(Or did you mean, why doesn't it go between the { and the (, in which
case the answer is `it just doesn't, but maybe it should say so in
the manual'.)
--
Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.
next parent reply other threads:[~1997-09-29 10:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <970928170607.ZM7789@candle.brasslantern.com>
1997-09-29 10:25 ` Peter Stephenson [this message]
1997-09-29 12:37 ` Zoltan T. Hidvegi
1997-09-29 15:26 ` Bart Schaefer
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=199709291025.MAA06202@sgi.ifh.de \
--to=pws@ifh.de \
--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).