Date: Sat, 08 Feb 2020 09:25:15 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 243975] diff(1) should print the usage information when two different formatting options are used at the same time Message-ID: <bug-243975-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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@FreeBSD.org Reporter: fnoyanisi@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@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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243975-227>
