From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1301 invoked from network); 11 Apr 2000 15:10:32 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Apr 2000 15:10:32 -0000 Received: (qmail 2402 invoked by alias); 11 Apr 2000 15:10:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10657 Received: (qmail 2384 invoked from network); 11 Apr 2000 15:10:23 -0000 From: "Bart Schaefer" Message-Id: <1000411151014.ZM32014@candle.brasslantern.com> Date: Tue, 11 Apr 2000 15:10:14 +0000 In-Reply-To: <200004110820.KAA03945@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: PATCH: Use "make -p" to get targets" (Apr 11, 10:20am) References: <200004110820.KAA03945@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: Use "make -p" to get targets MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 11, 10:20am, Sven Wischnowsky wrote: } Subject: Re: PATCH: Use "make -p" to get targets } } > ... } > } > +if (( ! $+_is_gnu[$1] )); then } } Different from _diff_options, _make doesn't get the command-to-call as } the first argument. Ooops. You missed one, though: Index: Completion/User/_make =================================================================== @@ -32,7 +32,7 @@ fi if [[ -n "$file" ]] && _tags targets; then - if [[ -n "$_is_gnu[$1]" ]]; then + if [[ -n "$_is_gnu[$words[1]]" ]]; then tmp=( $(make -nsp --no-print-directory -f "$file" .PHONY | awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}' FS=:) ) else tmp=( -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com