From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: tricky.c and completion functions
Date: 14 Aug 1999 01:07:43 +0900 [thread overview]
Message-ID: <rsq7lmz8y0g.fsf@crane.jaist.ac.jp> (raw)
In-Reply-To: "Bart Schaefer"'s message of "Fri, 13 Aug 1999 15:55:15 +0000"
In article <990813155515.ZM5338@candle.brasslantern.com>,
"Bart Schaefer" <schaefer@candle.brasslantern.com> writes:
> That (N) shouldn't be necessary -- brace expansion does not test for the
> exsistence of any files, it just pastes together the strings in all the
> possible combinations. Did it actually fail for you somehow?
It is required for removing non-existing files from the result of
the brace expansion.
For example, under SunOS 5.7:
Z(2):akr@is27e1u11% print -l /usr/{lib,{{X11R6,openwin},local{,/X11{,R6}}}/lib}/X11/rgb.txt
/usr/lib/X11/rgb.txt
/usr/X11R6/lib/X11/rgb.txt
/usr/openwin/lib/X11/rgb.txt
/usr/local/lib/X11/rgb.txt
/usr/local/X11/lib/X11/rgb.txt
/usr/local/X11R6/lib/X11/rgb.txt
Z(2):akr@is27e1u11% print -l /usr/{lib,{{X11R6,openwin},local{,/X11{,R6}}}/lib}/X11/rgb.txt(N)
/usr/openwin/lib/X11/rgb.txt
Z(2):akr@is27e1u11%
So, $(<$files[1]) causes an error if (N) is not used.
Also, I suppose that (N) was intended by Sven because
Completion/User/_cursors use same method for cursorfont.h.
--
Tanaka Akira
next prev parent reply other threads:[~1999-08-13 16:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-13 12:16 Sven Wischnowsky
1999-08-13 15:14 ` Tanaka Akira
1999-08-13 15:55 ` Bart Schaefer
1999-08-13 16:07 ` Tanaka Akira [this message]
1999-08-17 8:10 Sven Wischnowsky
1999-08-17 8:20 Sven Wischnowsky
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=rsq7lmz8y0g.fsf@crane.jaist.ac.jp \
--to=akr@jaist.ac.jp \
--cc=zsh-workers@sunsite.auc.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).