From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1363 invoked by alias); 6 Oct 2016 12:08:05 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39581 Received: (qmail 18719 invoked from network); 6 Oct 2016 12:08:05 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f54.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.213.54):SA:0(1.1/5.0):. Processed in 0.332269 secs); 06 Oct 2016 12:08:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=DATE_IN_PAST_06_12, FREEMAIL_FROM,SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: gmesalazar@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.213.54 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=RjvvWS3iSUEdjeTy/s81GiMRTsZM7QgINBQLTnHPS7A=; b=RK19HMN+6q+kk/9xIteoZvGHL7QLivo5s6Czz+j3f/KnN8eM4grSQqmGTgIfpppYGN uY/4ymt3SHitC78zGlN9S92FSemGnk+ce40/jJzOtSgLpsx71sDvljjYiRBPe2gXZG4w WS/DsWl52BozAtLV4vrpinx/XQuSju+EtBfORxunErtjIi1oCbEhq0uljzv6ChvmN5lj IaitAPwdFrjCUI3nbLmeZGQVGDXhRzYQ9VZKr6xv6hsKOWaAh+OePNSsj9U5iImgnRdL bdKFDkW/GnV7UZVpRMLagRcUYRmx7pyGqo4o7mKinE1vyp3WyBYluDL9NlkLKh3tp5GH c11A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RjvvWS3iSUEdjeTy/s81GiMRTsZM7QgINBQLTnHPS7A=; b=HhR7VTYStWX+wwaUv7hOJ3pYD9jMJ6zu8FqAS6zmnvTI29H8JfeyukJ9VYqtR0Tso6 e9/tD6XwG0mLOfxM19gMLJ5QRcFVQ1iweMS/d0b226sUPYFk2GXySWxkasF9uP2eaQ5w 019cZr9ZHDrxqjA/PbC0VYbj0N79rGgIDnihhiS0nERL36QYXm4zuOQuobvf4y59qivi uzXbw1nILwo/lwipvDH4VWGb/OWXLleaDunOGFkbZDnFY4oiYfS+xWTKRXvgkk4mtA/9 RKac+ITgJpCMKyFdBXh5DO07SmcLNW1HLJQgrgQRYH9YGRwzP7Uk4oHx62umcIXfVcnJ 9HlQ== X-Gm-Message-State: AA6/9RkMZs3Ii5AbwcMEfUlvNLpQgEcA2SmT3+Sqklx7pSJZC7Bqh6eRFOdVsL102LJ8qpOALaHj/9aXlCq+Ng== X-Received: by 10.31.196.131 with SMTP id u125mr9607164vkf.83.1475722632590; Wed, 05 Oct 2016 19:57:12 -0700 (PDT) MIME-Version: 1.0 From: Guilherme Salazar Date: Wed, 5 Oct 2016 23:56:52 -0300 Message-ID: Subject: zsh make(1) completion on FreeBSD To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Hey, The _make completion script has the following snippet: case "$OSTYPE" in freebsd*) _make-parseMakefile $PWD < <(_call_program targets "$words[1]" -nsp -f "$file" 4| .PHONY 2> /dev/null) ;; That is, _call_program invokes the make command ($words[1]) with the given options (-nsp...) to get the make database. The issue is the default make utility in FreeBSD is not GNU Make and it does not support these options; to get something in FreeBSD make, we could use the -d option (for debugging), along with A (for all) -- see [1] for details. If one has gmake installed, one can replace "$words[1]" with gmake or g"$words[1]" to have gmake dump the database info, but I'm not sure it's the ideal solution. [1] https://www.freebsd.org/cgi/man.cgi?query=make&apropos=0&sektion=1&manpath=FreeBSD+11-current&arch=default&format=html Cheers, G. Salazar