Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: support more arguments to diff
- X-seq: zsh-workers 42670
- From: Matthew Martin <phy1729@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: support more arguments to diff
- Date: Tue, 17 Apr 2018 07:53:09 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0nP9i8gkhWQ9eMnS2PpLdcx2sZ9TgnV/ie457DbhDxc=; b=dnij/ZrVc3sfU9Dg2TvjH48IqQDqWNlwR62NFTdftFDfsYxBfGfaL/1Xd8oaB77yEh j5joV+gBqr+cYzboYK9BXJXys54Itx1+LuE1iyuYcVJ/NESRhTAmmchDreBaJwjGnsMU MjhAsPYzVdPOk+VcVXDWcAsce8kCcyOAErIJkfPrsbG86+34A7K0o2LfeZmYCl4n/oKB nC7QIDS5TyKFNFi+Phtix4UUdz8OcrhLM9ob4lz6m00158ElSU0sr0wO+80IkORi79K6 q1TxvcyE/gQ4cqIx8etHNVGBu7SIdYLY0RFsvEsQAE2CBbgYbMZbuKgu7ObRc2qW5RpJ c38w==
- In-reply-to: <CAF6rxgkmqUbAivhR6c3=RK4U_F2gY3ybebAjLgBnuqSmCyneeQ@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>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAF6rxgmh+N8VdjzN-jGA4QHPJANLkMJ-JZXChb-28DZxxLVa7Q@mail.gmail.com> <20180416145913.wv637mfnw5hfe2fi@Daniels-MacBook-Air.local> <CAF6rxgkmqUbAivhR6c3=RK4U_F2gY3ybebAjLgBnuqSmCyneeQ@mail.gmail.com>
On Tue, Apr 17, 2018 at 04:22:38AM -0700, Eitan Adler wrote:
> On 16 April 2018 at 07:59, Daniel Tameling <tamelingdaniel@xxxxxxxxx> 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 it would be best to add the other cases as each BSD adopts
whichever diff. I generally try to update the completion to match
-current, so when a new release is picked up the options are correct.
> > 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.
I think the real reason is I only bothered to update OpenBSD completion
when I sent the patch. I usually shoot for [DFNO]BSD now.
- Matthew Martin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author