Re: [PATCH 5/5] diff: parse U/u/unified options with an optional integer arg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sun, 14 May 2006, Eric Wong wrote:
> 
> -u (lowercase) now accepts an optional arg, like -U (GNU diff
> -u also has this behavior).

Actually, modern GNU "diff -u5" will say

	diff: `-5' option is obsolete; use `-U 5'
	diff: Try `diff --help' for more information.

and exit.

I'm not entirely sure why, but I think it's because "u" can be mixed (ie 
with something like "-urN"), while "U" cannot. The GNU diff rule seems to 
be that simple arguments can be mixed together, but arguments with 
parameters cannot. Which sounds sane.

		Linus
-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]