Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: strange "diff -u" completion



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