tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
diff(1) command options
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
:)
+------------------+--------------------------+----------------------------+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+
Home |
Main Index |
Thread Index |
Old Index