Date: Sun, 16 Feb 2020 08:38:19 +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-GkcSzDVZfr@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-243975-227@https.bugs.freebsd.org/bugzilla/> References: <bug-243975-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243975 --- Comment #2 from fehmi noyan isi <fnoyanisi@yahoo.com> --- Created attachment 211687 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=211687&action=edit patch for diff.c and tests/diff_test.sh Added a new test case to check conflicting formatting options (more can be added) and removed one of the atf tests from unified_body() (see the email [1]) The patch adds a check when a formatting option is encountered and when multiple options are used, it writes a message to stderr, displays the usage and exists. This will align the behaviour with GNU diff [1] https://lists.freebsd.org/pipermail/freebsd-hackers/2020-February/055646.html -- You are receiving this mail because: You are on the CC list for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243975-227-GkcSzDVZfr>
