zsh-workers
 help / color / mirror / code / Atom feed
From: Matthew Martin <phy1729@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: support more arguments to diff
Date: Tue, 17 Apr 2018 07:53:09 -0500	[thread overview]
Message-ID: <20180417125307.GA34493@CptOrmolo.darkstar> (raw)
In-Reply-To: <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@gmail.com> 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


  reply	other threads:[~2018-04-17 12:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-16  5:48 Eitan Adler
2018-04-16 14:59 ` Daniel Tameling
2018-04-17 11:22   ` Eitan Adler
2018-04-17 12:53     ` Matthew Martin [this message]
2018-04-18  0:37       ` Eitan Adler
2018-04-18  9:22         ` Oliver Kiddle
2018-04-18  9:36           ` Eitan Adler
2018-08-29 14:56     ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180417125307.GA34493@CptOrmolo.darkstar \
    --to=phy1729@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).