Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh make(1) completion on FreeBSD
- X-seq: zsh-workers 39615
- From: Guilherme Salazar <gmesalazar@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: zsh make(1) completion on FreeBSD
- Date: Tue, 11 Oct 2016 22:14:04 -0300
- Cc: zsh-workers@xxxxxxx, Baptiste Daroussin <baptiste.daroussin@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/T0Mt5YWfNlcWDlel7xBJ1BCeemlKdt0+stNU7y5R7Y=; b=UxyvKy6bZ9rOjPZXetuHw29NHPF2lVM9emgbrCQqH+dDsyYCW2muYbfxrc/HNDK+Q9 h1rnkOGQaARI8WEAGBdTPKiQuoAU1x+Xr09H0nbQcGBVqEN0DRKv6L9r5s9vP4HyfA0N Og5agEP0FtGBjdf3YP0fBEnFaVERYW3Z4Yqrq8ELX1o+5Ig18p+v9ZsSAT5N7IL3SDVq bms+/gx2Vh6oBqKxAqV157XXjs/mMXZFo6POACV5BUgQnC7/imY+CixQkw1gQQLgmk05 73bVeZh2IVvlrVEP7/QOZUQ3wljBjAu4P1HfaPOta4soB7O77iwPGKWmzigKOid/xrmu 7TrA==
- In-reply-to: <20161012003606.GB32367@fujitsu.shahaf.local2>
- 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> <20161012003606.GB32367@fujitsu.shahaf.local2>
> 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.
$is_gnu will still give unix (on FreeBSD) in case `which make` is just
a symlink to /usr/local/bin/gmake.
> 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?
I'd expect the -n option to avoid side effects. Perhaps the reason is
that the BSD make infrastructure is a lot different than GNU's and a
single Makefile may not carry enough information by itself to generate
good completion?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author