Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: strange "diff -u" completion
- X-seq: zsh-users 12215
- From: Michal Politowski <mpol@xxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: strange "diff -u" completion
- Date: Sat, 17 Nov 2007 23:05:00 +0100
- In-reply-to: <20071117212105.ADB223B6395@xxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071117164132.335833B628A@xxxxxxxxxxxxxxxxxxx> <20071117182819.GA8932@xxxxxxx> <20071117212105.ADB223B6395@xxxxxxxxxxxxxxxxxxx>
On Sat, 17 Nov 2007 22:15:54 +0100, Vadim Zeitlin wrote:
[...]
> In any case, thanks again for your explanation (although I remain curious
> why did diff maintainers decide to deprecate this option... I'm so much
> used to typing "diff -u2" that it's going to be hard to break this habit).
Apparently because of POSIX conformance.
See http://bugs.debian.org/295421 and /usr/share/doc/diff/NEWS
And it wasn't actually -u taking a numerical argument before,
but a number could be a separate option, not necessarily
after -u, so eg. this also works:
_POSIX2_VERSION=199209 diff -2u /dev/null /etc/profile
--
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author