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

Re: PATCH: _find



In article <199904231201.OAA02796@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
  Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> > Hi. I found a bug in Completion/User/_find with zsh-3.1.5-pws-15.
> 
> Oops.

I found another problem about _find.

% zsh-3.1.5-pws-15 -f
% fpath=($PWD/Completion/*(/))
% . Completion/Core/compinit
% find <TAB>
/    ./   ../  

Hmm... Completion candidates are not enough.

--- Completion/User/_find-	Fri Apr 23 20:33:36 1999
+++ Completion/User/_find	Sun Apr 25 03:55:15 1999
@@ -13,7 +13,7 @@
   local ret=1
 
   compgen -g '. ..' && ret=0
-  _files -g '(-/)' && ret=0
+  _files -g '*(-/)' && ret=0
 
   return ret
 elif [[ "$prev" = -((a|c|)newer|fprint(|0|f)) ]]; then

-- 
[Tanaka Akira]



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