[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Extra options for libsvn_diff

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2006-02-16 20:35:25 CET

Martin Furter <mf@rola.ch> writes:

> "diff -u1 a b" is the same as "diff -u -1 a b"

No it isn't, as you say right here:

> If you specify it like "diff -u 1 a b" GNU diff complains about the extra
> operand "b".

That's because -u1 isn't parsed as "-u 1", but "-u -1".

> though I have no idea what the undocumented "-1" option does.

It's actually -N, where N is the number of lines of context to
show. Incredibly handy, but the GNU folks have gone on some
bizarre purist streak and begun removing these:

0 coreutils% head -1 config.log
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.

I'm sure diff will be next. POSIX_ME_HARDER please.

> (IM[NS]HO spaces between option and parameter should mandatory, but I
> guess it's some old compatibility bug)

It is not a bug.

-- 
Eric Gillespie <*> epg@pretzelnet.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 16 20:36:04 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.