[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
Sun Feb 16 08:38:20 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243975
--- Comment #2 from fehmi noyan isi <fnoyanisi at 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.
More information about the freebsd-bugs
mailing list