[Bug 243975] diff(1) should print the usage information when two different formatting options are used at the same time
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Feb 8 09:25:15 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243975
Bug ID: 243975
Summary: diff(1) should print the usage information when two
different formatting options are used at the same time
Product: Base System
Version: 12.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: fnoyanisi at yahoo.com
At the moment, when two different formatting options are used, diff(1) uses one
of the output formatting styles (needs a bit of debugging to figure out which
one is chosen - probably the last matching one) and ignores the other.
GNU diff displays an error message. Similarly, diff(1) should display a message
and the usage information before exiting.
fnoyanisi at beastie:~ % cat A
same1
differ1
differ3
fnoyanisi at beastie:~ % cat B
same1
differ2
differ4
fnoyanisi at beastie:~ % diff A B -u
--- A 2020-02-07 22:18:54.963051000 +0000
+++ B 2020-02-07 22:19:17.261555000 +0000
@@ -1,5 +1,3 @@
-same1
-differ1
-
-
-differ3
+same1
+differ2
+differ4
fnoyanisi at beastie:~ % diff A B -e
1,5c
same1
differ2
differ4
.
fnoyanisi at beastie:~ % diff A B -e -u
--- A 2020-02-07 22:18:54.963051000 +0000
+++ B 2020-02-07 22:19:17.261555000 +0000
@@ -1,5 +1,3 @@
-same1
-differ1
-
-
-differ3
+same1
+differ2
+differ4
fnoyanisi at beastie:~ % uname -a
FreeBSD beastie 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC amd64
I am working on a patch. Checking out the latest head source and building the
world at the moment.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list