Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: support more arguments to diff
- X-seq: zsh-workers 42661
- From: Daniel Tameling <tamelingdaniel@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: support more arguments to diff
- Date: Mon, 16 Apr 2018 16:59:13 +0200
- 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; bh=/zafRmCNjO5j/2ONsuEGms+Xf3070yAPGHoHiAWuzzk=; b=iPrkVhWpThHnkIIuah6e395e3rg6JHaszaEgO5csMkwnzaKFQp48oR0uOy3Lp/nAgx v46cyUukZbF3xLWK382bIQuJJKGRcyPLbTBnbQpfkMU9/MwTMgCDMTl/EJScCSJ90WR5 kUjPer8Cwa+fFG2tXC2dOfsaIPf49lvLNummo0tu8zLMRoXwGT0CSGJB3NdEkGmEMrVw oJxeo6t7Ml2OAgyBJ8DdOVFFHjgNEt+QY0ydUdlParVMOoYx4Yd7YYo4wuDtvvsQ8Vmo HuRGpjF9GZ6Bo4WnS0y4qM1Enz2ZbSY0cHntUjPh2U4qlC0JHupawr+iIoOGNSVSy19r 5Low==
- In-reply-to: <CAF6rxgmh+N8VdjzN-jGA4QHPJANLkMJ-JZXChb-28DZxxLVa7Q@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>
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:
$ uname -sr
FreeBSD 11.1-RELEASE-p9
$ which diff
/usr/bin/diff
$ diff -v
diff (GNU diffutils) 2.8.7
Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If completing, I also get the GNU options. -q appears actually on the
first line:
$ diff -<Tab>
Completing option
--brief -q -- output only whether files = differ
.....
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.
--
Kind regards,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author