Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zcompsys space character problem
- X-seq: zsh-workers 17910
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx, Frank v Waveren <fvw@xxxxxx>
- Subject: Re: zcompsys space character problem
- Date: Wed, 6 Nov 2002 09:03:58 +0100
- In-reply-to: <1021105051003.ZM21024@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1036465301GKC.fvw@xxxxxxxxxxxxx> <1021105051003.ZM21024@xxxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer wrote:
> ...
>
> Changing line 461 from
>
> compfiles -r tmp1 "$tmp3"
>
> to
>
> compfiles -r tmp1 "${(Q)tmp3}"
>
> has the desired effect in this particular case, but I don't know if it is
> always correct. Sven, are you out there?
I wasn't sure if it weren't better to put this into the C-code, but
leaving it in the shell code seems much more flexible (and, somehow,
logical).
Below is Bart's suggestion put into a patch which I'm goinh to commit.
Bye
Sven
Index: Completion/Unix/Type/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_files,v
retrieving revision 1.19
diff -u -r1.19 _path_files
--- Completion/Unix/Type/_path_files 2 Jul 2002 14:06:49 -0000 1.19
+++ Completion/Unix/Type/_path_files 6 Nov 2002 07:55:34 -0000
@@ -464,7 +464,7 @@
# names. This avoids having `foo' complete to `foo' and `foobar'.
# The return value is non-zero if the component is ambiguous.
- compfiles -r tmp1 "$tmp3"
+ compfiles -r tmp1 "${(Q)tmp3}"
tmp4=$?
if [[ "$tpre" = */* ]]; then
--
Sven Wischnowsky wischnow@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author