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

PATCH: _make complete filenames as a last resort.



If targets for makefiles contain variable references, _make can not
generate proper completion candidate.

I think it is useful to complete normal filenames as a last resort.

--- Completion/User/_make-	Mon Jun  7 10:00:59 1999
+++ Completion/User/_make	Mon Jun  7 10:01:07 1999
@@ -1,3 +1,4 @@
 #compdef make gmake pmake
 
-compgen -s "\$(awk '/^[a-zA-Z0-9][^\/ 	]+:/ {print \$1}' FS=: [mM]akefile /dev/null)"
+compgen -s "\$(awk '/^[a-zA-Z0-9][^\/ 	]+:/ {print \$1}' FS=: [mM]akefile /dev/null)" ||
+compgen -f

-- 
Tanaka Akira



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