tech-userlevel archive

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

Re: diff(1) command options



In article <Pine.NEB.4.64.1802201013590.1938%speedy.whooppee.com@localhost>,
Paul Goyette  <paul%whooppee.com@localhost> wrote:
>Is there any _good_ reason that the various output-format options (-y, -u, -c, 
>--normal, etc.) generate error messages if you specify more than one format? 
>For example,
>
> 	# diff -u -y F1 F2
> 	diff: conflicting output style options
> 	diff: Try `diff --help' for more information.
> 	#
>
>Most other utilities I can think of simply use the-last-specified option in a 
>conflict set;  in the above example, -y would "override" -u.
>
>In my case, I have a shell alias for
>
> 	alias diff "diff -u"
>
>'cuz most of the time I want a -u output.  But once in a blue moon (or perhaps 
>once in a blue+super moon) I want a -y (side-by-side) output; it's a real pain 
>to have to bypass the alias by specifying a complete path to /usr/bin/diff
>
>:)

It is not, you just \diff

christos



Home | Main Index | Thread Index | Old Index