zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _make
@ 1999-04-23 15:34 Tanaka Akira
  1999-04-25 18:44 ` Tanaka Akira
  0 siblings, 1 reply; 2+ messages in thread
From: Tanaka Akira @ 1999-04-23 15:34 UTC (permalink / raw)
  To: zsh-workers

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]


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: _make
  1999-04-23 15:34 PATCH: _make Tanaka Akira
@ 1999-04-25 18:44 ` Tanaka Akira
  0 siblings, 0 replies; 2+ messages in thread
From: Tanaka Akira @ 1999-04-25 18:44 UTC (permalink / raw)
  To: zsh-workers

In article <rsq90bjpcz8.fsf@crane.jaist.ac.jp>,
  Tanaka Akira <akr@jaist.ac.jp> writes:

> +compgen -s "\$(awk '/^[a-zA-Z0-9][^\/         ]+:/ {print \$1}' FS=: [mM]akefile /dev/null)"

Hmm, I think that second character list should contain space and tab
instead of nine spaces.

*** Completion/User/_make-	Mon Apr 26 03:37:38 1999
--- Completion/User/_make	Mon Apr 26 03:38:13 1999
***************
*** 1,3 ****
  #compdef make gmake pmake
  
! compgen -s "\$(awk '/^[a-zA-Z0-9][^\/         ]+:/ {print \$1}' FS=: [mM]akefile /dev/null)"
--- 1,3 ----
  #compdef make gmake pmake
  
! compgen -s "\$(awk '/^[a-zA-Z0-9][^\/ 	]+:/ {print \$1}' FS=: [mM]akefile /dev/null)"

-- 
[Tanaka Akira]


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-04-25 18:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-23 15:34 PATCH: _make Tanaka Akira
1999-04-25 18:44 ` Tanaka Akira

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).