Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: tricky.c and completion functions
- X-seq: zsh-workers 7434
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: tricky.c and completion functions
- Date: 14 Aug 1999 01:07:43 +0900
- In-reply-to: "Bart Schaefer"'s message of "Fri, 13 Aug 1999 15:55:15 +0000"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199908131216.OAA11188@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <rsqd7wr90ho.fsf@xxxxxxxxxxxxxxxxx> <990813155515.ZM5338@xxxxxxxxxxxxxxxxxxxxxxx>
In article <990813155515.ZM5338@xxxxxxxxxxxxxxxxxxxxxxx>,
"Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author