Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion of files with spaces in



Bruce Stephens wrote:

> With zsh-3.1.5-pws-13, zsh -f, files with spaces in don't seem to get
> quoted properly.
> 
> So if I have the file "readme - corrections.txt", and I type:
> 
>         % less read<TAB>
> 
> I get 
> 
>         % less readme - 
> 
> I was expecting the spaces to be quoted with \.
> 
> I'm sure this worked once.  What's happened?

Me -- breaking up things (my favorite pastime).

Bye
 Sven

diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c	Thu Mar 25 15:31:01 1999
+++ Src/Zle/zle_tricky.c	Thu Mar 25 17:26:47 1999
@@ -3644,7 +3646,8 @@
 		    isalt = 1;
 	}
 	if (!(ms = comp_match(fpre, fsuf, s, filecomp, &lc,
-			      (addwhat == CC_FILES || addwhat == -6),
+			      (addwhat == CC_FILES || addwhat == -6 ||
+			       addwhat == -5 || addwhat == -8),
 			      &bpl, &bsl, &isexact)))
 	    return;
 

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author