Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh make(1) completion on FreeBSD
- X-seq: zsh-workers 39614
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Guilherme Salazar <gmesalazar@xxxxxxxxx>
- Subject: Re: zsh make(1) completion on FreeBSD
- Date: Wed, 12 Oct 2016 00:36:06 +0000
- Cc: zsh-workers@xxxxxxx, Baptiste Daroussin <baptiste.daroussin@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=nZlPRz2SAlkH6dX0oR4O6kh+lhM=; b=e4VGBt sPsOXGOuPkiOPiWL9zUZvOhtZnTDylfh2qi5GkJV8+kNL+0VmiCDke+EEGYtPGuS TOiG3gESyfuBDnrWTzbd0syoPvT/TRd1L60pS5KuaAA59PhFvAL4kWPGI1Og+KRY GrAeRzCHJcpwrzRcBhifoiJjDNPPGk49d5Tx8=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=nZlPRz2SAlkH6dX0oR4O6kh+lhM=; b=Qpl5N C/uEO1UlZ1WvjZ762gHat4u/XyrKQcHhQfcTtl0X6Ey7IXOHKlm9L930kY3u6nHO Fwoh+y6XmQRJQMn+ptuNPjzjARvo00edUGauoCGSI2Ac/rKCJ7a5K90XP8UROGDS bfdD51+F0LYeU2LIUdsiySQi4v7S1Ed2dSLD5M=
- In-reply-to: <CA+Hmt2hoe-w2iQTi9yfK3kfT7PB6Oc_VKyk57OK2bgBXOgXczA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CA+Hmt2iOypn5PDukmM3TH1=g-194QC_6FLVeaM-U0vFG1YbO7w@mail.gmail.com> <20161011212150.GA24484@fujitsu.shahaf.local2> <CA+Hmt2h+jOFVcg1q9ujfTN0no1WJD2VyvuneRfZ+JJ1SW89cHQ@mail.gmail.com> <20161012000249.GA32367@fujitsu.shahaf.local2> <CA+Hmt2hoe-w2iQTi9yfK3kfT7PB6Oc_VKyk57OK2bgBXOgXczA@mail.gmail.com>
Guilherme Salazar wrote on Tue, Oct 11, 2016 at 21:24:16 -0300:
> If one's make points to gmake instead of bmake, $words[1] itself will
> not be gmake. New patch attached fixes that, by looking for GNU in
> `$words[1] -v`. Sorry about that, didn't think about it before ;p
> --- /usr/ports/shells/zsh/work/zsh-5.2/Completion/Unix/Command/_make 2015-08-08 14:51:33.000000000 -0300
> +++ /usr/local/share/zsh/5.2/functions/Completion/Unix/_make 2016-10-11 21:15:56.295311000 -0300
> @@ -268,7 +268,14 @@
> + if [[ `$words[1] -v 2> /dev/null` == *'GNU'* ]]
That's precisely what the _pick_variant call at the top of the function
does, so you can just test $is_gnu instead. Note that the enclosing if
already inspects that variable.
In current master (before your patch), the 'call-command' style is
consulted only for GNU make but not for FreeBSD. Do you know if that's
intentional, perhaps (going by the style's docs) because the GNU make
invocation has side-effects while the BSD make invocation has none?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author