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: [email protected]
          Reporter: [email protected]

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@beastie:~ % cat A
same1
differ1


differ3
fnoyanisi@beastie:~ % cat B
same1  
differ2
differ4
fnoyanisi@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@beastie:~ % diff A B -e
1,5c
same1  
differ2
differ4
.
fnoyanisi@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@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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to