From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20242 invoked by alias); 17 Apr 2018 11:23:14 -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: List-Unsubscribe: X-Seq: 42668 Received: (qmail 18188 invoked by uid 1010); 17 Apr 2018 11:23:14 -0000 X-Qmail-Scanner-Diagnostics: from mail-yb0-f174.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.174):SA:0(-1.9/5.0):. Processed in 1.201415 secs); 17 Apr 2018 11:23:14 -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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: lists@eitanadler.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=n6aYmSB9HYBMaE3izbiAYXxmRRduRq2XAmr6OvvwbSU=; b=OPR7PFcrXQDy/DQPL/uj8qwDxmkO47BVL1GgfutlMBg9H/bXh3CfhdGrOORbLojc9D h+rSdjKUw5ID2kDqZgpDt2pzdMv4i+fBl9TwENPe7xlD79U9QbUXODogqTd3ul55Dw4J pdphsGtR7r9Pd67PZtj+/Vc9VO7UnPiL47Jr8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=n6aYmSB9HYBMaE3izbiAYXxmRRduRq2XAmr6OvvwbSU=; b=GH787qULcRo3XuOU1j6PfzO7gnHlPRTx42J4xVEi6p8224zA+oeQlGayiTVZysmxL9 yEidg3tbcSBVPuFYDaor3sI119mIeqR83i3iYGehWi2k40U006wIPYPAe0v4pQ52z+1M 6mj3+h8udB55QWezaE4roqT3ZbgIWhTMjb8riBbarD0DGVOrcKaamDfTW4x5uGTBaLVv lU8yIz0alZNv5Tj/kQIBb6c8yQ36PiID+laA9+6FUnMlFtRMa0/Lxb0L9RTMQhp0/sCs c3OcP1ShUMrv9UNddnL1SBGyBCfeqWcpbnLtkl3PlUigtr1yOtgDKcdbT68EPH+LzDQI cepw== X-Gm-Message-State: ALQs6tC4S5pvXJVa5EWH1a3bbMmDLcDTkiBnGHCdXGUjsHCxE4KH9tu9 OSimnGSw6TH5cJiqjoaqc+q9E2+ErzGCqjTr4xsCSg== X-Google-Smtp-Source: AIpwx48i1+I9ksQCJZCzWkWiCmu7vPe4jd85jOdrbQAHKZY63GDBz4Nnu5+ty50q7s6BX/BfWFqMpmABJQlYHhuzJuw= X-Received: by 2002:a25:a0d0:: with SMTP id i16-v6mr839980ybm.479.1523964189229; Tue, 17 Apr 2018 04:23:09 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180416145913.wv637mfnw5hfe2fi@Daniels-MacBook-Air.local> References: <20180416145913.wv637mfnw5hfe2fi@Daniels-MacBook-Air.local> From: Eitan Adler Date: Tue, 17 Apr 2018 04:22:38 -0700 Message-ID: Subject: Re: support more arguments to diff To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On 16 April 2018 at 07:59, Daniel Tameling wrote: > On Sun, Apr 15, 2018 at 10:48:08PM -0700, Eitan Adler wrote: >> This patch isn't perfect since {Net,DragonFly,Open,Free}BSD are not >> identical but this patch at leasts makes the completion a lot closer >> to reality. >> >> Currently FreeBSD doesn't even show -q for example. >> > > Did the patch change the behavior of diff completion for you? On my > FreeBSD, diff is some GNU variant, and I think that it's the default > and that I didn't install it via pkg: FreeBSD is in the process of converting to a new diff implementation. This resulted in me seeing a huge difference with this patch. I'd also like to port this particular diff implementation to the other BSDs, hence adding all of them to the case statement. > I think the reason why there is only openbsd in the else branch is > that all the other ship with some kind of GNU diff. (At least that is > what the online man pages of dragonfly and netbsd indicate.) However, > the versions seem to differ wildly across BSDs. Makes sense from a historical point of view. -- Eitan Adler