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

PATCH: _make



I think that _make in zsh-3.1.5-pws-15 has a problem.

If this function runs in a directory without [mM]akefile,
awk process waits standard input and zsh stops.

% Src/zsh -f
% fpath=($PWD/Completion/*(/))
% . Completion/Core/compinit
% cd Completion
% make <TAB>

--- Completion/User/_make-	Sat Apr 24 00:24:13 1999
+++ Completion/User/_make	Sat Apr 24 00:24:19 1999
@@ -1,3 +1,3 @@
 #compdef make gmake pmake
 
-compgen -s "\$(awk '/^[a-zA-Z0-9][^\/         ]+:/ {print \$1}' FS=: [mM]akefile)"
+compgen -s "\$(awk '/^[a-zA-Z0-9][^\/         ]+:/ {print \$1}' FS=: [mM]akefile /dev/null)"

-- 
[Tanaka Akira]



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